Return From Interface Function Returning Null
I am attempting to work with the UE4 Interfaces in C++ and, it seems like this should all work, I get no errors or compiler issues but I am getting results that make no sense. This is a very simple interface that should return a component from a character.
and then in the .h file for my character...
and the .cpp
Yet this always returns null, I am positive the class has the component which is stored in that variable.
This is where it is created in the parent class.
I have tried several methods to pull this info through the interface and they all return null.
asked Jun 12 '18 at 04:37 AM in C++ Programming
In your implementation, you don't have to re-state the UFUNCTION macro nor the original getter... but you must do the _Implementation, like you have done. However, one thing you're missing is the override specifier at the end of your function declaration.
Perhaps something like:
I dropped the UFUNCTION and the getter, then added the override specifier at the end.
answered Jun 12 '18 at 07:57 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here