Extending from Object
C++ noob here. I am fairly well-versed in Unrealscript, but new to C++.
I would appreciate some answers on the following, but first some backstory:
I have created a simple class (header and cpp files) that I would ideally like to extend from Object instead of Actor, as it doesn't require any physical presence in the world. I require an instance/reference/pointer of/to this class in my custom Character class to handle some calculations.
Coming from Unrealscript, I couldn't figure out the C++/UE4 equivalent of
so I extended my class from Actor and used:
This seems to work. However, I would like to know:
Any feedback would be greatly appreciated.
asked Apr 01 '14 at 02:33 PM in C++ Programming
You should be able to just use NewObject or NewNamedObject to achieve the same effect.
answered Apr 01 '14 at 02:50 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here