How can i skip that gamemode is instanced newly when level changed?

Hi!

I know that gamemode instanced newly when change level.

but, i don’t want to instancing the gamemode newly.

How can i do that?

help me please…

You should look into GameInstance it persists across level changes.

Read about it here

using game instance

Because not data!

I don’t want to instancing the gamemode newly.

Because not data!

I don’t want to instancing the gamemode newly.

Well, you shouldn’t be storing variables on gamemode you don’t want to lose.

Game mode is only for current levels. It is always newly instanced. There is no way around it being newly instanced each time.

You should be storing data on GameInstance and using GameMode as a source for you Game’s Broad Gameplay functions, such as, Start(), Death(), GameOver(), Respawn(), ExitToMenu(), PauseGame(), etc.

Not as a container for data.