docs.unity.cn
    Show / Hide Table of Contents

    Struct InputAxis.RecenteringSettings

    Defines the settings for automatic re-centering

    Namespace: Unity.Cinemachine
    Syntax
    [Serializable]
    public struct RecenteringSettings

    Fields

    Enabled

    If set, will enable automatic re-centering of the axis

    Declaration
    [Tooltip("If set, will enable automatic re-centering of the axis")]
    public bool Enabled
    Field Value
    Type Description
    Boolean

    Time

    How long it takes to reach center once re-centering has started

    Declaration
    [Tooltip("How long it takes to reach center once re-centering has started.")]
    public float Time
    Field Value
    Type Description
    Single

    Wait

    If no user input has been detected on the axis for this man seconds, re-centering will begin.

    Declaration
    [Tooltip("If no user input has been detected on the axis for this many seconds, re-centering will begin.")]
    public float Wait
    Field Value
    Type Description
    Single

    Properties

    Default

    Default value

    Declaration
    public static readonly InputAxis.RecenteringSettings Default { get; }
    Property Value
    Type Description
    InputAxis.RecenteringSettings

    Methods

    Validate()

    Call from OnValidate: Make sure the fields are sensible

    Declaration
    public void Validate()
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Saturday, May 6, 2023