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

Question Unity Editor Window Question

Discussion in 'Editor & General Support' started by Lanian, Mar 23, 2023.

  1. Lanian

    Lanian

    Joined:
    Mar 7, 2015
    Posts:
    3
    Can I specify a minimum size for the editor window?
    ex) editorWindow - Inspector, Hierarchy, Project. ..

    When using the unity editor version 2020, there was a minimum width size limit.

    However, after upgrading Unity Editor to 2021, the minimum width size of EditorWindow became very small.

    is this intended?

    Is there any way I can set it to the 2020 version settings?

    This question was written with Google Translate.
     
  2. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    6,007
    How were you determining/enforcing the minimum size in 2020?

    I suppose in
    OnGUI
    you could just check if the window is below a certain size, and use that to enforce your desired minimum size.
     
  3. Lanian

    Lanian

    Joined:
    Mar 7, 2015
    Posts:
    3
  4. spiney199

    spiney199

    Joined:
    Feb 11, 2021
    Posts:
    6,007
    Right, I was confused by 'editor window' because those aren't editor windows (I know you're using a translator, sorry), they're just... windows I suppose.

    I don't think there is a way to restrict their size. Just, I guess, be careful not to make them too small.