Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  4. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Disable System header on Editor Window

Discussion in 'Extensions & OnGUI' started by rootools, Aug 31, 2018.

  1. rootools

    rootools

    Joined:
    Nov 25, 2013
    Posts:
    10
    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:
    426
  3. rootools

    rootools

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