Loading multiple scenes on game start?

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
NicoMozes
Posts: 24
Joined: Sun Jun 05, 2022 4:18 am

Loading multiple scenes on game start?

Post 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
User avatar
Tony Li
Posts: 22085
Joined: Thu Jul 18, 2013 1:27 pm

Re: Loading multiple scenes on game start?

Post 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().
NicoMozes
Posts: 24
Joined: Sun Jun 05, 2022 4:18 am

Re: Loading multiple scenes on game start?

Post by NicoMozes »

Thanks for the reply!

I will give it a go.

Have a great rest of weekend!.
Nico
User avatar
Tony Li
Posts: 22085
Joined: Thu Jul 18, 2013 1:27 pm

Re: Loading multiple scenes on game start?

Post by Tony Li »

Glad to help! You have a great weekend, too!
Post Reply