Download

Having problem with casting GameState


I was trying to CastGameState for Save and Load system and idk why! I just can’t Cast it

You could check if it exists at that point. I’m not sure at what point GameState is spawned and begun play, could happen after your BeginPlay in whatever class you’re trying to cast it in

Tested: Make sure your parent class is GameStateBase, not GameState. Also, make sure your level’s gamemode is using your custom class.

It does.