Instantiate a UActorComponent subclass from a parametrized class in C++?
I'm building a character in C++, and I want to have a weapon component which is instantiated from a class which can be set in blueprint. In my .h file I have this to parametrize the class:
Then in the .cpp I am trying to instantiate like my other components, but it's throwing an error:
The error I get is
So I guess InitialWeaponClass is not a
asked May 14 '16 at 04:43 PM in C++ Programming
InitialWeaponClass is a member variable not a type name for a function template.
Try non-template version of CreateDefaultSubobject, here is an example:
answered May 15 '16 at 02:09 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here