Hi, I have been studying for a short time in C ++ and I encountered a problem that I cannot find a clear answer to on the internet.
The problem as in the title of the post is quite simple. When creating a new function, at the beginning we declare what type of “Return” will be and if everything is understandable to me, when I want to declare any other type, everything works as it should. But there is no way I can declare the Return “Object Reference” as for example has the “Spawn Actor From Class” function as in the picture below.
Here is an example of a function with different “Return” types that I have successfully declared:
Function with Int Return :
Function with Array Return :
Function with Soft Object Reference Return :
I tried to look at the node made in Unreal but unfortunately I do not fully understand how they are declared.
Thanks for any tips!