Search Unity

Create Custom Dropdown Window At Property Position

Discussion in 'Editor & General Support' started by Maniczombie, May 16, 2021.

  1. Maniczombie

    Maniczombie

    Joined:
    Oct 19, 2012
    Posts:
    15
    I'm working on a custom property drawer which has a button. When creating a custom editor window, how do I make the window position itself under the button I clicked? Same functionality as how any other dropdown works in unity.

    EditorWindow.ShowAsDropdown seems to use screen space position so I can't just pass it the rect of the property.
     
    ACCIAIO and lord_Z like this.