Search Unity

  1. Unity 2019.1 beta is now available.
    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. We're looking for insight from anyone who has experience with game testing to help us better Unity. Take our survey here. If chosen to participate you'll be entered into a sweepstake to win an Amazon gift card.
    Dismiss Notice
  4. On February 28th the Feedback website will shut down and be redirected to the Unity forums. See the full post for more information.
    Dismiss Notice
  5. Want to provide direct feedback to the Unity team? Join the Unity Advisory Panel.
    Dismiss Notice
  6. Unity 2018.3 is now released.
    Dismiss Notice
  7. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    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:
    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:
    522
  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:
    522
    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"