Retrieve GameMode and/or GameState in Editor
I'm just trying to retrieve the Game Mode and Game State of the EditorWorld. For some reason it is always returning null.
I have made blueprint instances of my c++ classes for both the AGameModeBase and the AGameStateBase. Then in my Project Settings, I use those instances in maps and modes->Default Game Mode and maps and modes->Game State Class. Then in my UActorComponent, I try to get a handle on these instances like so:
However GameState and GameMode are always NULL? I am not sure what to do? This is run while the editor is paused because I enabled the UActorComponent to tick while pause. I'd like to be able to retrieve either of these instances at any time. Is this possible?
Follow this question
Once you sign in you will be able to subscribe for any updates here