mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class TagPropertyDrawer

    Draws a Unity Tag selector in the Inspector.

    Inheritance
    Object
    TagPropertyDrawer
    Implements
    PropertyDrawer
    Namespace: Microsoft.MixedReality.Toolkit.Editor
    Assembly: cs.temp.dll.dll
    Syntax
    public class TagPropertyDrawer : PropertyDrawer, PropertyDrawer
    Examples
    [TagProperty]
    public string FindTag;
    [TagProperty]
    public string FindTag;

    Methods

    OnGUI(Rect, SerializedProperty, GUIContent)

    Override this method to make your own GUI for the property.

    Declaration
    public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
    Parameters
    Type Name Description
    Rect position

    Rectangle on the screen to use for the property GUI.

    SerializedProperty property

    The SerializedProperty to make the custom GUI for.

    GUIContent label

    The label of this property.

    OnGUI(Rect, SerializedProperty, GUIContent)

    Override this method to make your own GUI for the property.

    Declaration
    public override void OnGUI(Rect position, SerializedProperty property, GUIContent label)
    Parameters
    Type Name Description
    Rect position

    Rectangle on the screen to use for the property GUI.

    SerializedProperty property

    The SerializedProperty to make the custom GUI for.

    GUIContent label

    The label of this property.

    Implements

    PropertyDrawer
    In This Article
    • Methods
      • OnGUI(Rect, SerializedProperty, GUIContent)
      • OnGUI(Rect, SerializedProperty, GUIContent)
    • Implements
    Back to top Generated by DocFX