docs.unity3d.com
    Show / Hide Table of Contents

    Class XRBaseControllerEditor

    Custom editor for an XRBaseController.

    Inheritance
    Object
    BaseInteractionEditor
    XRBaseControllerEditor
    ActionBasedControllerEditor
    XRControllerEditor
    Inherited Members
    BaseInteractionEditor.knownSerializedPropertyNames
    BaseInteractionEditor.OnInspectorGUI()
    BaseInteractionEditor.InitializeKnownSerializedPropertyNames()
    BaseInteractionEditor.DrawDerivedProperties()
    BaseInteractionEditor.DrawScript()
    Namespace: UnityEditor.XR.Interaction.Toolkit
    Syntax
    public class XRBaseControllerEditor : BaseInteractionEditor

    Fields

    m_AnimateModel

    of the backing animateModel.

    Declaration
    protected SerializedProperty m_AnimateModel
    Field Value
    Type Description
    SerializedProperty

    m_EnableInputActions

    of the backing enableInputActions.

    Declaration
    protected SerializedProperty m_EnableInputActions
    Field Value
    Type Description
    SerializedProperty

    m_EnableInputTracking

    of the backing enableInputTracking.

    Declaration
    protected SerializedProperty m_EnableInputTracking
    Field Value
    Type Description
    SerializedProperty

    m_Model

    of the backing model.

    Declaration
    protected SerializedProperty m_Model
    Field Value
    Type Description
    SerializedProperty

    m_ModelDeSelectTransition

    of the backing modelDeSelectTransition.

    Declaration
    protected SerializedProperty m_ModelDeSelectTransition
    Field Value
    Type Description
    SerializedProperty

    m_ModelParent

    of the backing modelParent.

    Declaration
    protected SerializedProperty m_ModelParent
    Field Value
    Type Description
    SerializedProperty

    m_ModelPrefab

    of the backing modelPrefab.

    Declaration
    protected SerializedProperty m_ModelPrefab
    Field Value
    Type Description
    SerializedProperty

    m_ModelSelectTransition

    of the backing modelSelectTransition.

    Declaration
    protected SerializedProperty m_ModelSelectTransition
    Field Value
    Type Description
    SerializedProperty

    m_ModelTransform

    Declaration
    protected SerializedProperty m_ModelTransform
    Field Value
    Type Description
    SerializedProperty

    m_UpdateTrackingType

    of the backing updateTrackingType.

    Declaration
    protected SerializedProperty m_UpdateTrackingType
    Field Value
    Type Description
    SerializedProperty

    Methods

    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.

    Declaration
    protected virtual void DrawBeforeProperties()

    DrawInputConfiguration()

    Draw property fields related to interaction input. These are related to enableInputActions.

    Declaration
    protected virtual void DrawInputConfiguration()

    DrawInspector()

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

    Declaration
    protected override void DrawInspector()
    Overrides
    BaseInteractionEditor.DrawInspector()
    See Also
    DrawBeforeProperties()
    DrawProperties()
    DrawDerivedProperties()

    DrawModelProperties()

    Draw property fields related to the controller model.

    Declaration
    protected virtual void DrawModelProperties()

    DrawOtherActions()

    Draw property fields related to other, specialized input actions and haptic output.

    Declaration
    protected virtual void DrawOtherActions()

    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.

    Declaration
    protected virtual void DrawProperties()

    DrawTrackingConfiguration()

    Draw property fields related to tracking. These are related to enableInputTracking.

    Declaration
    protected virtual void DrawTrackingConfiguration()

    GetDerivedSerializedPropertyNames()

    Returns a list containing the names of all fields defined in the (including derived types).

    Declaration
    protected override List<string> GetDerivedSerializedPropertyNames()
    Returns
    Type Description
    List<String>

    Returns a list of strings with property names.

    Overrides
    BaseInteractionEditor.GetDerivedSerializedPropertyNames()

    OnEnable()

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

    Declaration
    protected virtual void OnEnable()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023