Casting GameInstance Fails

I’m trying to cast GameInstance to my custom GameInstance called GI_Main on EventBeginPlay. All of the threads on the internet are from users not settings the default GameInstance, but mine is properly set and still failing the cast.

Test Nodes


Test Print

Default Set Properly


Any ideas? Thanks.

Have you try restarting the editor?

Have you tried getting the game instance in another BP, like in the gamemode or level?

Make sure gi main is actually your game instance

Restarting worked, thanks. Weird.