So, what’s that new little Static checkbox at the top of the Unity iPhone inspector panel for?
It’s to set objects as occluders for occlusion culling.
Oooooooh.
I knew I should have read that page in the docs.
Thanks!
I found that it does not work consistently on build.
I have two scripts that draw to the GUI Layer and one is Static in that Layer. It appears to layer correctly in Unity. But, when I build to the iPhone it randomly layers the graphics in the GUI Layer even if you set one of the objects to Static.
I have already filed a bug for this feature.
The Static setting and the GUI are unrelated… maybe I’m not understanding what you’re saying though.
I have found that if I set the Value to Static it has priority when Unity draws an object that has a GUI function in it.
Maybe this is part of the issue?
GUI order is affected by the GUI.depth call.
If you are using GUIElement and GUIText it is affected by the z component of the transform.
If the order appears random then you are using the same GUI.depth / z position, thus it is random. It is unrelated to the static checkbox.