Skip to content

EnableIfPropertyDrawer

Namespace: SideXP.Core.EditorOnly | Inherits from: PropertyDrawer

public class EnableIfPropertyDrawer : PropertyDrawer

Makes a field enabled only if a named boolean field or property is checked.

Methods

OnGUI(Rect, SerializedProperty, GUIContent)

public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)

Inherited documentation.

GetPropertyHeight(SerializedProperty, GUIContent)

public override float GetPropertyHeight(SerializedProperty property, GUIContent label)

Inherited documentation.