Search Unity

Seleting what side to dock when creating an editor window

Discussion in 'Immediate Mode GUI (IMGUI)' started by hexdump, Mar 11, 2016.

  1. hexdump

    hexdump

    Joined:
    Dec 29, 2008
    Posts:
    443
    Is there any way to specify what side to dock to when creating an editor window? The docs state that we can use an array of types to let unity search for a window to dock. The problem is that it always docks at the top (showing just the tab). Here is the code I'm using right now:

    Code (CSharp):
    1. System.Type[] types= new System.Type[] { typeof(FlowNodeAppWindow) };
    2. InspectorFlowNodeAppWindow ifnaw= EditorWindow.GetWindow<InspectorFlowNodeAppWindow>(types) as InspectorFlowNodeAppWindow;
    3. ifnaw.Show();
    Is there any way to specify the side we want to dock?

    Cheers.