DrawIfPropertyDrawer Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.PropertyDrawerDrawIfPropertyDrawer
- 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) |