Daniel Lip
Daniel Lip

Reputation: 11335

I have two scenes but when adding new ui it's adding it to the first scene all the time and never to the new one why is that?

New Scene

It's adding the new UI > Panel to the SampleScene under the Canvas I already have there instead adding it to the New Scene scene and creating a new Canvas for the Panel inside on the New Scene.

Upvotes: 1

Views: 59

Answers (1)

It may help to click the context menu on the "New Scene" in the Hierarchy window and select "Set Active Scene".

From the documentation:

The active Scene is the Scene which will be used as the target for new GameObjects instantiated by scripts and from what Scene the lighting settings are used. When you add a Scene additively (see LoadSceneMode.Additive), the first Scene is still kept as the active Scene. Use this to switch the active Scene to the Scene you want as the target.

Upvotes: 1

Related Questions