docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct AxisState.Recentering

    Helper for automatic axis recentering

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.Cinemachine
    Assembly: solution.dll
    Syntax
    [Obsolete("AxisState.Recentering is deprecated.  Use InputAxis and InputAxisController instead")]
    [Serializable]
    public struct AxisState.Recentering

    Constructors

    Name Description
    Recentering(bool, float, float)

    Constructor with specific field values

    Fields

    Name Description
    m_RecenteringTime

    How long it takes to reach destination once recentering has started

    m_WaitTime

    If no input has been detected, the camera will wait this long in seconds before moving its heading to the default heading.

    m_enabled

    If checked, will enable automatic recentering of the axis. If FALSE, recenting is disabled.

    Methods

    Name Description
    CancelRecentering()

    Cancel any recenetering in progress.

    CopyStateFrom(ref Recentering)

    Copy Recentering state from another Recentering component.

    DoRecentering(ref AxisState, float, float)

    Bring the axis back to the centered state (only if enabled).

    RecenterNow()

    Skip the wait time and start recentering now (only if enabled).

    Validate()

    Call this from OnValidate()

    In This Article
    Back to top
    Copyright © 2023 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)