K
K
Kenity2021-10-07 22:47:41
Unity
Kenity, 2021-10-07 22:47:41

Why are UI elements displayed in all scenes?

The problem is that when I create a new scene and in the new scene I add canvas, and buttons to it, then these buttons are displayed throughout the game, in all scenes, how to fix this?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Andrey Boronnikov, 2021-10-11
@red-cat-fat

I see 2 possible problems:
1. Somewhere on the parent UI object hangs Object.DontDestroyOnLoad .
2. You load a new scene in parallel, and the UI is saved, since you have 2 scenes hanging at the same time.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question