docs.unity.cn
    Show / Hide Table of Contents

    Struct AxisBase

    This is a deprecated component. Use InputAxis instead.

    Namespace: Unity.Cinemachine
    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
    Single

    m_MinValue

    The minimum value for the axis

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

    m_Value

    The current value of the axis

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

    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
    Boolean

    Methods

    Validate()

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

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