If i instantiate some GUITextures whit Editor (in my case 3) in a 2D Unity Scene. (Ortho Camera). After Build&Run the scene is rendered in haotic render order, then i dont cange nothing in code Build&Run again and the Scene renders in wright order. It’s a unity bug or i am doing somting wrong. (In my Scene i do not have any script only 3 GUITexture instances with Editor)?
there is no defined order unless you specify it explicitely. this is what causes the problem there as the 3 are fighting for the same depth and all try to be in front so its a good luck thing what comes out.
Yes i tried with GUI.depth to but works only for values 0,1 with other values no visible result.
Thanks you’re opened my mind i solved it form camera and z position.