We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

Search Results for

    Show / Hide Table of Contents

    Class ScenePickPropertyDrawer

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

    Inheritance
    Object
    ScenePickPropertyDrawer
    Namespace: Microsoft.MixedReality.Toolkit.Editor
    Assembly: cs.temp.dll.dll
    Syntax
    public class ScenePickPropertyDrawer : PropertyDrawer
    Examples
    [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

    In This Article
    Back to top Generated by DocFX