How to pass arg. to a function as an instance of interface type?
I'm trying to pass an pawn of class (AMyPawn), inherited also from an interface (IMyInterface, which have specific method called
But with this code I get compile-error:
I ran into a similar issue and it turned out I hadn't implemented the declarations of the functions in the interface header properly. I didn't need any BP exposed functionality on my interface. To have a native c++ interface function that you don't need in BP you need to declare your interface function as pure virtual. For example:
Then you still need the UInterface wrapper for it as well. Not sure if this is the same problem you were experiencing but I ran into this thread on my way to solving it so figured I would leave my solution here either way.
answered May 16 '17 at 05:40 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here