Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

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:
    20
    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:
    1,315
  3. rootools

    rootools

    Joined:
    Nov 25, 2013
    Posts:
    20
    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:
    1,315
    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:
    20
    I mean "ScriptableObject.CreateInstance" or "new CommanderWindow"