Hi!
I have a few scenes:
1. Main Preloader - has only 2D UI and different Game Objects like Managers
2. Lobby (Menu) - has only 2D UI and different Game Objects like Managers
3. Level Preloader - has only 2D UI and different Game Objects like Managers
4. Level - has 2D UI, 3D World and different Game Objects like Managers
All scenes except scene №1 built in Asset Bundles and dynamically loaded. At all scenes UI is different, the only thing that unites them (№1 - №4) is PopUp`s (Popup Message, Popup Error etc.).
1. How best to organize at the interface - at each scene different UIRoot or have a single UIRoot with the flag DontDestoryOnLoad and the different panels for each scene are disabled when it is needed.
2. If we use a different UIRoot for the scenes, how to make some common UI elements (Popup`s in this case).
2.a. If you mark only Popups UI with DontDestroyOnLoad, then when loading the next scene, they disappear, because the parent (UIRoot) is not marked with DontDestroyOnLoad, he would removed with child objects.
2.b. If you mark the whole UIRoot with DontDestroyOnLoad, the next scene will not only popups, but the whole UIRoot.
Thanks!