How to return a ref to a struct?

I was getting ahead of myself there, just wondering why the funtion and direct property access in blueprints act differently, while they should not. The function clearly shows the square on the output parameter, so that function should work while it does not.

nice, then the issue is probably with blueprints.

I think we should try a few things one by one now.

If you remove all the “UPARAM(Ref)”, do you still get reference return values in blueprint?

Are you sure GetRef returns from MyStructArray properly? I see something going on there with DefaultStruct. You tested GetStructRef in C++ but perhaps not GetRef.