Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

GUI.Window over EditorWindow GUI?

Discussion in 'Immediate Mode GUI (IMGUI)' started by SonicBloomEric, Sep 16, 2015.

  1. SonicBloomEric

    SonicBloomEric

    Joined:
    Sep 11, 2014
    Posts:
    1,085
    I'm attempting to use GUI.Window (or GUILayout.Window) to draw some controls in a popover type menu for an EditorWindow that I have. I do wrap the call to the GUILayout.Window function in EditorWindow.BeginWindows/EndWindows but I'm having issues with it based on where in my EditorWindow's OnGUI function I place this stuff:
    1. Before the EditorWindow's OnGUI body: the popover window shows up underneath the controls drawn to the EditorWindow.
    2. After the EditorWindow's OnGUI body: the popover window shows up over the controls drawn to the EditorWindow but mouse events are captured by controls underneath the popover window.
    Does anyone have any idea how to get this to work properly? Is this simply not what the system was designed for?