Search Unity

Disable System header on Editor Window

Discussion in 'Immediate Mode GUI (IMGUI)' started by rootools, Aug 31, 2018.

  1. rootools

    rootools

    Joined:
    Nov 25, 2013
    Posts:
    11
    It's posible to remove this toolbar from EditorWindow? Or maybe exist some other class to popup some window without any buttons, tabs and etc.?
     
  2. Madgvox

    Madgvox

    Joined:
    Apr 13, 2014
    Posts:
    597
  3. rootools

    rootools

    Joined:
    Nov 25, 2013
    Posts:
    11
    Hm. I get different results with similar things:


    Fast open, set focus, with header
    _window = GetWindow<CommanderWindow>(true, string.Empty, true);
    _window.ShowPopup();


    Slow open, not focused, without header;
    _window = ScriptableObject.CreateInstance<CommanderWindow>();
    _window = new CommanderWindow();
    _window.ShowPopup();
     
  4. Madgvox

    Madgvox

    Joined:
    Apr 13, 2014
    Posts:
    597
    Code (CSharp):
    1. _window = new CommanderWindow();
    This line is unnecessary.
    ScriptableObject.CreateInstance
    already makes a new
    CommanderWindow
    .
     
  5. rootools

    rootools

    Joined:
    Nov 25, 2013
    Posts:
    11
    I mean "ScriptableObject.CreateInstance" or "new CommanderWindow"