i don´t know if this a bug or not. If you want use GUI Depth with diffrent GUI Labels and also disable the useGUILayout then the GUI Sorting did not work. If i do not execute the command then the GUI sorting works.
This has already been logged in the bugs database. I’m not sure yet if it is a fault or an inevitable effect of turning off the GUI layout phase (ie, I don’t know if the bug is in the application or the docs).
this is an example of what happens, nothing have changed expect for useGUILayout.
useGUILayout = true; and ~= 25 KB of allocation.
useGUILayout = false; and ~= 4.4 KB of allocation
notice the comboBoxes and the labels on the left and see the difference.
nothing was changed, all i did was toggling the useGUILayout. and I dont use any sort of GUILayout calls.
I tried to do a bug report, but my project is complex, nearly 6GB, but I will create a new project for this to show the bug and report with that scene.