protected void DrawEnumPropertyDropDown(EnumProperty property) { if (property != null && property.IsValid()) { BeginHorizontal(); EditorGUILayout.PrefixLabel(property.Name); property.CurrentValueIndex = EditorGUILayout.Popup(property.CurrentValueIndex, property.ValuesNames); EndHorizontal(); } }
protected void DrawEnumPropertyGrid(EnumProperty property, int nbRows) { if (property != null && property.IsValid()) { DrawTitleLabel(property.Name); property.CurrentValueIndex = GUILayout.SelectionGrid(property.CurrentValueIndex, property.ValuesNames, nbRows, EditorStyles.radioButton); EditorGUILayout.Space(); } }