Get class of actor?
Is there a way to get the class of an AActor except for manually casting it to every single subclass, nor enumerations with the type of the actor as a variable?
I need this for my inventory system
asked Nov 21 '15 at 08:24 AM in C++ Programming
answered Nov 21 '15 at 11:43 PM
could try if (MyActor->IsA(AWeaponActor::StaticClass()))
answered Nov 23 '15 at 09:48 AM
Or put all actor classes inside an index.
answered Nov 22 '15 at 12:51 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here