Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

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:
    52
    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,005
    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:
    4,021
    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. }
     
unityunity