My GameState is empty.. Any ideas what might be failing?
I am setting the class up in the gamemode:
and then inside my huds BeginPlay I am calling
I am setting the class up in the gamemode:
Code:
GameStateClass = AGameState::StaticClass();
Code:
UWorld* world = GetWorld(); GameState = world->GetGameState<AMainGameState>();
Comment