SceneInfoDrawer Class

Definition

Draws the scene info struct and populates its hidden fields.

C++
public ref class SceneInfoDrawer : UnityEditor::PropertyDrawer
Inheritance
UnityEditor.PropertyDrawer
SceneInfoDrawer
Attributes
UnityEditor.CustomPropertyDrawerAttribute

Constructors

Properties

DrawTagProperty

Used to control whether to draw the tag property. All scenes can have tags, but they're not always relevant based on how the scene is being used. Not sure how much I like this method of controlling property drawing since it could result in unpredictable behavior in inspectors. We could add an enum or bool to the SceneInfo struct to control this, but that seemed like unnecessary clutter.

Methods

Applies to

Product Versions
MRTK2 Unity 2018 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0
MRTK2 Unity 2019 2.5.0, 2.5.1, 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0
MRTK2 Unity 2020 2.5.2, 2.5.3, 2.5.4, 2.6.0, 2.7.0, 2.8.0