TimedFlagPropertyDrawer Class

Definition

A custom property drawer for TimedFlag fields.

C#
[UnityEditor.CustomPropertyDrawer(typeof(MixedReality.Toolkit.TimedFlag), true)]
[UnityEditor.CustomPropertyDrawer(typeof(MixedReality.Toolkit.EditableTimedFlagAttribute), true)]
public class TimedFlagPropertyDrawer : UnityEditor.PropertyDrawer
Inheritance
UnityEditor.PropertyDrawer
TimedFlagPropertyDrawer
Attributes
UnityEditor.CustomPropertyDrawerAttribute

Remarks

Enables inspector editing of state value if the property is decorated with EditableTimedFlagAttribute.

Constructors

Methods

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

Product Versions
MRTK3 Core Definitions 3.0, 3.1, 3.2