Language
Edit

DrawIfPropertyDrawer Class

Definition

A custom property drawer for fields decorated with the DrawIfAttribute attribute.

[UnityEditor.CustomPropertyDrawer(typeof(MixedReality.Toolkit.DrawIfAttribute))]
public class DrawIfPropertyDrawer : UnityEditor.PropertyDrawer
[<UnityEditor.CustomPropertyDrawer(typeof(MixedReality.Toolkit.DrawIfAttribute))>]
type DrawIfPropertyDrawer = class
    inherit PropertyDrawer
Public Class DrawIfPropertyDrawer
Inherits PropertyDrawer
Inheritance
UnityEditor.PropertyDrawer
DrawIfPropertyDrawer
Attributes
UnityEditor.CustomPropertyDrawerAttribute

Remarks

Conditionally draws a property based on the value associated with the DrawIfAttribute attribute.

Constructors

Name Description
DrawIfPropertyDrawer()

Methods

Name Description
GetPropertyHeight(SerializedProperty, GUIContent) UnityEditor.PropertyDrawer.GetPropertyHeight(UnityEditor.SerializedProperty,UnityEngine.GUIContent)
OnGUI(Rect, SerializedProperty, GUIContent) UnityEditor.PropertyDrawer.OnGUI(UnityEngine.Rect,UnityEditor.SerializedProperty,UnityEngine.GUIContent)

Applies to