Edit

Bagikan melalui


SceneAssetReferenceAttributeDrawer Class

Definition

Draws an object field as a scene asset reference. This enables fields to store references to scene assets (which is an editor-only object) as unity objects (which work in both editor and runtime)

public ref class SceneAssetReferenceAttributeDrawer : UnityEditor::PropertyDrawer
[UnityEditor.CustomPropertyDrawer(typeof(Microsoft.MixedReality.Toolkit.SceneAssetReferenceAttribute))]
public class SceneAssetReferenceAttributeDrawer : UnityEditor.PropertyDrawer
[<UnityEditor.CustomPropertyDrawer(typeof(Microsoft.MixedReality.Toolkit.SceneAssetReferenceAttribute))>]
type SceneAssetReferenceAttributeDrawer = class
    inherit PropertyDrawer
Public Class SceneAssetReferenceAttributeDrawer
Inherits PropertyDrawer
Inheritance
UnityEditor.PropertyDrawer
SceneAssetReferenceAttributeDrawer
Attributes
UnityEditor.CustomPropertyDrawerAttribute

Constructors

SceneAssetReferenceAttributeDrawer()

Methods

OnGUI(Rect, SerializedProperty, GUIContent)

Applies to