Search Unity

Custom Editor for Scriptable Wizard

Discussion in 'Immediate Mode GUI (IMGUI)' started by xLeo, Nov 22, 2011.

  1. xLeo

    xLeo

    Joined:
    Sep 21, 2010
    Posts:
    194
    I'm trying to create a custom editor dynamic dropdown to set a given property in my scriptable wizard, but i can't seem to pull it of..
    Tried to create custom OnGUI and a custom editor, but neither of these options worked.

    Does anyone have any idea about this?

    Thanks
     
  2. radiantboy

    radiantboy

    Joined:
    Nov 21, 2012
    Posts:
    1,633
    did you ever figure this out? when i use ongui() on my wizard stuff vanishes.
     
  3. karl_jones

    karl_jones

    Unity Technologies

    Joined:
    May 5, 2015
    Posts:
    8,283
    Sounds like you want to use a PopupWindowContent

    For example
    Code (csharp):
    1. if (EditorGUI.DropdownButton(dropDownPosition, "My Dropdown", FocusType.Keyboard))
    2. {
    3.     PopupWindow.Show(dropDownPosition, new MyPopupWindow() { Width = dropDownPosition.width });
    4. }