Read property on GameModeBase from GameStateBase
I'm new in Unreal development. I have a question: I have created an object on my GameModeBase class. It is legal access this object from GameStateBase class? I don't know if there is a good practices manual.
I'm developing Pong game with C++ only and I have created the ball in GameModeBase. I need to access it from GameStateBase to start move it when user press Spacebar.
But... I don't know how to get access to
I get an instance of
Maybe I'm think about how to do it instead of doing it.
Follow this question
Once you sign in you will be able to subscribe for any updates here