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

HideIfDrawer Class

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

Methods

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