Class ScenePickPropertyDrawer
Creates a custom picker based on the list of scene in the build settings.
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