Quick question.
Can I access the enum created in class A, that’s an actor and so includes other functionality in class B?
Would I just have to add the #include “classA” into class B?
Quick question.
Can I access the enum created in class A, that’s an actor and so includes other functionality in class B?
Would I just have to add the #include “classA” into class B?
Yes, you should be able to access it. You may need to quality it’s scope when you use it such as AClassA::EMyEnum::ValueA or something like that. I generally put my Enums outside of the class definition though - ie before any class statements in the header file so i can access them with just EMyEnum::ValueA from anywhere.
And yes, you may need to include the header file.
Ah thank you.