Failed to cast to game instance?

I just set up a save/load system and while testing PIE had a random crash. After reloading my project, I started getting notified that my Game Instance failed to cast. What could be causing this? MainGameInstance is what’s selected in Project Settings too.

Sounds like you’ve run into an elusive bug. Try removing it from the Project Settings → Compile and add it back in.

1 Like

It happens in 4.27 so, this is no necro. I had same problem. Yesterday all works smooth, today casting fails. I follow you solution and it works - in setting, my game instance was missing, I add it again and all works - thanks.

2 Likes