API reference
API reference
Select your platform
No SDKs available
No versions available

ShowIfDrawer Class

Extends PropertyDrawer
A drawer to handle drawing fields with a [ShowIf] attribute. When fields have this attribute they will be shown in the inspector conditionally based on the evaluation of a field or property.

Methods

GetPropertyHeight ( property , label )
Signature
override float Meta.WitAi.Drawers.ShowIfDrawer.GetPropertyHeight(SerializedProperty property, GUIContent label)
Parameters
property: SerializedProperty
label: GUIContent
Returns
override float
OnGUI ( position , property , label )
Signature
override void Meta.WitAi.Drawers.ShowIfDrawer.OnGUI(Rect position, SerializedProperty property, GUIContent label)
Parameters
position: Rect
property: SerializedProperty
label: GUIContent
Returns
override void