How to use GameInstance exactly

My English not good sry.

I want to know GameInstance used for what exactly?
I want to know how to use it when I make projects in the future.
Can you explain it by using the game function as an example?

use host, join, addviewport…

Hi and welcome to the community.

The GameInstance is used for a number of things. It is basically a global process for the game so anything you need to persist between levels, for example a score or something else, could be held here. In terms of multiplayer, this would track the level in which all players should be using and trigger server travel.

I hope this helps.

1 Like

Privacy & Terms