docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Class XROriginEditor

    Custom editor for an XROrigin.

    Inheritance
    object
    Object
    ScriptableObject
    Editor
    XROriginEditor
    Inherited Members
    Editor.CreateEditorWithContext(Object[], Object, Type)
    Editor.CreateEditorWithContext(Object[], Object)
    Editor.CreateCachedEditorWithContext(Object, Object, Type, ref Editor)
    Editor.CreateCachedEditorWithContext(Object[], Object, Type, ref Editor)
    Editor.CreateCachedEditor(Object, Type, ref Editor)
    Editor.CreateCachedEditor(Object[], Type, ref Editor)
    Editor.CreateEditor(Object)
    Editor.CreateEditor(Object, Type)
    Editor.CreateEditor(Object[])
    Editor.CreateEditor(Object[], Type)
    Editor.DrawPropertiesExcluding(SerializedObject, params string[])
    Editor.DrawDefaultInspector()
    Editor.Repaint()
    Editor.CreateInspectorGUI()
    Editor.RequiresConstantRepaint()
    Editor.DrawHeader()
    Editor.OnHeaderGUI()
    Editor.ShouldHideOpenButton()
    Editor.DrawFoldoutInspector(Object, ref Editor)
    Editor.HasPreviewGUI()
    Editor.GetPreviewTitle()
    Editor.RenderStaticPreview(string, Object[], int, int)
    Editor.OnPreviewGUI(Rect, GUIStyle)
    Editor.OnInteractivePreviewGUI(Rect, GUIStyle)
    Editor.OnPreviewSettings()
    Editor.GetInfoString()
    Editor.DrawPreview(Rect)
    Editor.ReloadPreviewInstances()
    Editor.UseDefaultMargins()
    Editor.Initialize(Object[])
    Editor.MoveNextTarget()
    Editor.ResetTarget()
    Editor.target
    Editor.targets
    Editor.serializedObject
    Editor.finishedDefaultHeaderGUI
    ScriptableObject.SetDirty()
    ScriptableObject.CreateInstance(string)
    ScriptableObject.CreateInstance(Type)
    ScriptableObject.CreateInstance<T>()
    Object.GetInstanceID()
    Object.GetHashCode()
    Object.Equals(object)
    Object.Instantiate(Object, Vector3, Quaternion)
    Object.Instantiate(Object, Vector3, Quaternion, Transform)
    Object.Instantiate(Object)
    Object.Instantiate(Object, Transform)
    Object.Instantiate(Object, Transform, bool)
    Object.Instantiate<T>(T)
    Object.Instantiate<T>(T, Vector3, Quaternion)
    Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
    Object.Instantiate<T>(T, Transform)
    Object.Instantiate<T>(T, Transform, bool)
    Object.Destroy(Object, float)
    Object.Destroy(Object)
    Object.DestroyImmediate(Object, bool)
    Object.DestroyImmediate(Object)
    Object.FindObjectsOfType(Type)
    Object.DontDestroyOnLoad(Object)
    Object.DestroyObject(Object, float)
    Object.DestroyObject(Object)
    Object.FindSceneObjectsOfType(Type)
    Object.FindObjectsOfTypeIncludingAssets(Type)
    Object.FindObjectsOfType<T>()
    Object.FindObjectOfType<T>()
    Object.FindObjectsOfTypeAll(Type)
    Object.FindObjectOfType(Type)
    Object.ToString()
    Object.name
    Object.hideFlags
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    object.MemberwiseClone()
    Namespace: Unity.XR.CoreUtils.Editor
    Assembly: solution.dll
    Syntax
    [CustomEditor(typeof(XROrigin), true)]
    [CanEditMultipleObjects]
    public class XROriginEditor : Editor

    Fields

    Name Description
    m_Camera

    SerializedProperty of the SerializeField backing Camera.

    m_CameraFloorOffsetObject

    SerializedProperty of the SerializeField backing CameraFloorOffsetObject.

    m_CameraYOffset

    SerializedProperty of the SerializeField backing CameraYOffset.

    m_OriginBaseGameObject

    SerializedProperty of the SerializeField backing Origin.

    m_RequestedTrackingOriginMode

    SerializedProperty of the SerializeField backing RequestedTrackingOriginMode.

    m_TrackingOriginMode

    m_TrackingOriginMode has been deprecated. Use m_RequestedTrackingOriginMode instead.

    Properties

    Name Description
    knownSerializedPropertyNames

    The SerializeField names of all SerializedProperty fields defined in the Unity.XR.CoreUtils.Editor (including derived types).

    Methods

    Name Description
    DrawBeforeProperties()

    This method is automatically called by DrawInspector() to draw the section of the custom inspector before DrawProperties(). By default, this draws the read-only Script property.

    DrawCurrentTrackingOriginMode()

    Draw the current Tracking Origin Mode while the application is playing.

    DrawDerivedProperties()

    This method is automatically called by DrawInspector() to draw the property fields of derived classes that are not explicitly defined in the Unity.XR.CoreUtils.Editor.

    DrawInspector()

    This method is automatically called by OnInspectorGUI() to draw the custom inspector. Override this method to customize the inspector as a whole.

    DrawProperties()

    This method is automatically called by DrawInspector() to draw the property fields. Override this method to customize the properties shown in the Inspector. This is typically the method overridden when a derived behavior adds additional serialized properties that should be displayed in the Inspector.

    DrawScript()

    Draw the standard read-only Script property.

    GetDerivedSerializedPropertyNames()

    Returns a list containing the SerializeField names of all SerializedProperty fields defined in the Unity.XR.CoreUtils.Editor (including derived types).

    InitializeKnownSerializedPropertyNames()

    This method is automatically called by OnInspectorGUI() to initialize knownSerializedPropertyNames if necessary. This is used together with DrawDerivedProperties() to draw all unknown serialized fields from derived classes.

    OnEnable()

    This function is called when the object becomes enabled and active.

    OnInspectorGUI()

    Any inheriting classes should invoke this method.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)