Page 1 of 1

Loading multiple scenes on game start?

Posted: Sat Oct 19, 2024 7:05 am
by NicoMozes
Hello Tony!

Happy Sunday! I trust you are doing very well.

Using the Menu Framework, when starting a new game we call the SaveHelper.RestartGame().

This method loads a single scene, but I was hoping to load the terrains as separate scenes before the game starts.

Is there a way to load them all before the game starts? Or I need to do in OnStart on the first scene?

Thanks in advance,
Nico

Re: Loading multiple scenes on game start?

Posted: Sat Oct 19, 2024 10:17 am
by Tony Li
Hi Nico,

You could hook into a C# event such as SaveSystem.sceneLoaded to know when the scene has been loaded, and then additively load your terrain scenes using SaveSystem.LoadAdditiveScene().

Re: Loading multiple scenes on game start?

Posted: Sat Oct 19, 2024 12:57 pm
by NicoMozes
Thanks for the reply!

I will give it a go.

Have a great rest of weekend!.
Nico

Re: Loading multiple scenes on game start?

Posted: Sat Oct 19, 2024 2:25 pm
by Tony Li
Glad to help! You have a great weekend, too!