Search Unity

  1. Get the latest news, tutorials and offers directly to your inbox with our newsletters. Sign up now.
    Dismiss Notice

EnumPopup able to exclude items?

Discussion in 'Immediate Mode GUI (IMGUI)' started by sarachan, Sep 5, 2020.

  1. sarachan

    sarachan

    Joined:
    Jul 21, 2013
    Posts:
    34
    I am using EditorGUILayout.EnumPopup() and wonder if there is a way to exclude some of the enums from the popup. I understand that that the checkEnabled argument can disable some of the enums, so that they appear on the popup greyed out. Is there a way to have the disabled enum values excluded from the popup list entirely, instead of having them greyed out?

    Thanks!
    Brion
     
  2. NMJ_GD

    NMJ_GD

    Joined:
    Dec 28, 2019
    Posts:
    9
    I have same question :D
     
unityunity