bool FlagsPopup(Rect position, SerializedProperty property, GUIContent label, bool includeChildren) { EditorGUIControls.DoCustomNamesPopup( position, property, label, this as ICustomOptionNamesProvider <CustomFlagNames> ); return(includeChildren && property.hasChildren && property.isExpanded); }
protected override void DoGUI(Rect position, SerializedProperty property, GUIContent label) { var attr = attribute as SoftRangeAttribute; EditorGUIControls.SoftSlider( position, label, property, attr.SliderMin, attr.SliderMax, attr.TextFieldMin, attr.TextFieldMax ); }
public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { if (IsCompatible(property)) { DoGUI(position, property, label); } else { EditorGUIControls.DisplayCompatibilityWarning(position, label, ObjectNames.NicifyVariableName(GetType().Name)); } }