i have several widget that needed to show on different events.
so after constructing them, i need to save their object reference some where to skip re-creation of them.
what is the best place to save them so that those can be accessible at any time?
game mode / game instance/ game state?
i was using game mode but it has side effects.so was looking for alternative
In a multiplayer game only one GameMode exists, and runs on the server, clients do not have direct access to it,
so instead you use GameState to save and get your game data.
In non multiplayer game you can just use GameMode for that.