public override void OnGUI(Rect position, SerializedProperty property, GUIContent label) { var state = HiddenAttributeDrawer.IsEnabled(this, property); if (state == true) { EditorGUI.PropertyField(position, property, label, true); } }
public override float GetPropertyHeight(SerializedProperty property, GUIContent label) { var state = HiddenAttributeDrawer.IsEnabled(this, property); if (state == true) { return(EditorGUI.GetPropertyHeight(property, label, true) + 2f); } return(0f); }