UFunction return TArray

swrcVendetta
Thu, 23 Jun 2022 11:26:33 +0000
C++

Hey,

so I am fairly new to C++ coding in general, not just when it comes to Unreal. I have some good knowledge in C#, Java and other languages however C++ is a different level to me.

I am trying to return a TArray from a void (UFunction) into BluePrint but I can not get it to work. I saw you can do it without using “return” but by putting it into the void parameters. That has worked but not with TArray for some reason and I don’t really understand why it’s not working.

Could anyone explain how it has to be done and show an up-to-date example that is actually working (in UE5)? That would be really helpful!

9 posts - 5 participants