docs.unity3d.com
    Show / Hide Table of Contents

    Class DeviceBasedSnapTurnProviderEditor

    Custom editor for a DeviceBasedSnapTurnProvider.

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

    Fields

    m_Controllers

    of the backing controllers.

    Declaration
    protected SerializedProperty m_Controllers
    Field Value
    Type Description
    SerializedProperty

    m_DeadZone

    of the backing deadZone.

    Declaration
    protected SerializedProperty m_DeadZone
    Field Value
    Type Description
    SerializedProperty

    m_DebounceTime

    of the backing debounceTime.

    Declaration
    protected SerializedProperty m_DebounceTime
    Field Value
    Type Description
    SerializedProperty

    m_EnableTurnAround

    of the backing enableTurnAround.

    Declaration
    protected SerializedProperty m_EnableTurnAround
    Field Value
    Type Description
    SerializedProperty

    m_EnableTurnLeftRight

    of the backing enableTurnLeftRight.

    Declaration
    protected SerializedProperty m_EnableTurnLeftRight
    Field Value
    Type Description
    SerializedProperty

    m_System

    of the backing system.

    Declaration
    protected SerializedProperty m_System
    Field Value
    Type Description
    SerializedProperty

    m_TurnAmount

    of the backing turnAmount.

    Declaration
    protected SerializedProperty m_TurnAmount
    Field Value
    Type Description
    SerializedProperty

    m_TurnUsage

    of the backing turnUsage.

    Declaration
    protected SerializedProperty m_TurnUsage
    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()

    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()

    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()

    OnEnable()

    See .

    Declaration
    protected 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