docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct AxisBase

    This is a deprecated component. Use InputAxis instead.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Cinemachine
    Assembly: Unity.Cinemachine.dll
    Syntax
    [Obsolete("AxisBase has been deprecated. Use InputAxis instead.")]
    [Serializable]
    public struct AxisBase

    Fields

    m_MaxValue

    The maximum value for the axis

    Declaration
    [Tooltip("The maximum value for the axis")]
    public float m_MaxValue
    Field Value
    Type Description
    float

    m_MinValue

    The minimum value for the axis

    Declaration
    [Tooltip("The minimum value for the axis")]
    public float m_MinValue
    Field Value
    Type Description
    float

    m_Value

    The current value of the axis

    Declaration
    [Tooltip("The current value of the axis.")]
    public float m_Value
    Field Value
    Type Description
    float

    m_Wrap

    If checked, then the axis will wrap around at the min/max values, forming a loop

    Declaration
    [Tooltip("If checked, then the axis will wrap around at the min/max values, forming a loop")]
    public bool m_Wrap
    Field Value
    Type Description
    bool

    Methods

    Validate()

    Call this from OnValidate() to validate the fields of this structure (applies clamps, etc).

    Declaration
    public void Validate()
    In This Article
    Back to top
    Copyright © 2025 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)