Any Game State good example?

Thanks JoSf! You were right. By using GameStateClass, now I can initialize my custom game state.

Now, the problem is that, although GameState seems ok on my GameModeBase, when I try to access it from another class (I tried to obtain a value inside GameState from a APlayerController), the World, and it’s GameState are empty.

In order to access it I’m using UWorld* World = GetWorld() and then, World->GetGameState.

Any idea? Thanks in advanced!

1 Like