Quantcast
Channel: Questions in topic: "dontdestroyonload"
Viewing all articles
Browse latest Browse all 416

Canvas order and DontDestroyOnLoad

$
0
0
Hello! I have a problem with canvas order. I have 3 scenes in game. There are canvases with own UI elements on each scene plus canvas with common UI elements which put into DontDestroyOnLoad and jorney between scenes. All canvases has RenderMode=ScreenSpace-Overlay. So when scene is loading I have it's own canvas at the top in hierarchy and canvas in DontDestroyOnLoad at the bottom. I cant't have access to the common UI elements in DontDestroyOnLoad canvas because it fully overlayed with top-in-hierarchy canvas belonged to current scene. It seems that this problem wasn't in Unity 5.x because canvas at the bottom of hierarchy has highest priority. But it appear when I upgrade to 2017.x and it seems that now canvas at the top of hierarchy has highest priority. Is there any ways to solve this problem?

Viewing all articles
Browse latest Browse all 416

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>