Search Unity

EditorWindow.position.height, EditorWindow.maxSize

Discussion in 'Editor & General Support' started by usernameHed, Sep 29, 2019.

  1. usernameHed

    usernameHed

    Joined:
    Apr 5, 2016
    Posts:
    93
    Hello, I am using a custon GUI.Window inside an editorWindow:


    I have added some X,Y limit for the node, thanks to _currentEditorWindow.position.height.

    it works well, until I have a scrollbar... As you see in the video, My node can't go downer.

    I could use EditorWindow.maxSize instead of position.height for the Y limit... But the maxSize if WAY too large than the actual window. It's not the good value to use.

    How can I do ? maybe I have to get the current width/height of the scroll bar ?