Bläddra i källkod

Lower user-created UI elements' priority. Closes #60.

Yao Wei Tjong 姚伟忠 12 år sedan
förälder
incheckning
4eee3b8a96
1 ändrade filer med 1 tillägg och 0 borttagningar
  1. 1 0
      Bin/Data/Scripts/Editor/EditorUIElement.as

+ 1 - 0
Bin/Data/Scripts/Editor/EditorUIElement.as

@@ -33,6 +33,7 @@ void CreateRootUIElement()
     editorUIElement.name = "UI";
     editorUIElement.SetSize(graphics.width, graphics.height);
     editorUIElement.traversalMode = TM_DEPTH_FIRST;     // This is needed for root-like element to prevent artifacts
+    editorUIElement.priority = -1000;   // All user-created UI elements have lowest priority so they do not cover editor's windows
 
     // This is needed to distinguish our own element events from Editor's UI element events
     editorUIElement.elementEventSender = true;