I'm trying to build a small UI with a popup dialog showing an error message. Now, the UI shows (GUILayout. Horizontal/Vertical and things like that used) and then at the end I do this
if(bError)
PopupDialog.SpawnPopupDialog(...)
and the dialog with my error messages is shown behind the rest of the UI. What am I missing? How is the z-order defined? I didn't find anything about that... but, to be honest, I've no idea what I have to search for...
Any ideas what's wrong?