mrtk_developmentreleases/2.0.0releases/2.1.0releases/2.2.0

    Show / Hide Table of Contents

    Class ScenePickPropertyDrawer

    Creates a custom picker based on the list of scene in the build settings.

    Inheritance
    Object
    ScenePickPropertyDrawer
    Implements
    PropertyDrawer
    Namespace: Microsoft.MixedReality.Toolkit.Editor
    Assembly: cs.temp.dll.dll
    Syntax
    public class ScenePickPropertyDrawer : PropertyDrawer, PropertyDrawer
    Examples
    [ScenePick]
    public int SceneId;
    [ScenePick]
    public int SceneId;

    Methods

    OnGUI(Rect, SerializedProperty, GUIContent)

    Function called by unity to draw the GUI for this property We are replacing the int value of the backing field with a dropdown list of scene names

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

    See base class

    SerializedProperty property

    See base class

    GUIContent label

    See base class

    OnGUI(Rect, SerializedProperty, GUIContent)

    Function called by unity to draw the GUI for this property We are replacing the int value of the backing field with a dropdown list of scene names

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

    See base class

    SerializedProperty property

    See base class

    GUIContent label

    See base class

    Implements

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