I’m currently developing an algorithm in C++ for my game, and I am writing the code in an empty C++ (not actor, scene, etc).
Now I want to call the method in my Scene Component class (inherited from Scene Component), but it always says “A non-static member reference must be relative to a specific object”.
Let’s say my class is ABC, and my method is CheckABC().
So currently I’m calling the method in the Scene Component class through ABC::CheckABC(), which returned the aforementioned error message.
I found in the forum that we have to create a default subobject, but since that ABC class is an empty class, it would be nonsense to create a subobject from it, wouldn’t it?
Thanks in advance!!