docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct CinemachineInputAxisDriver

    This is a deprecated component. Use DefaultInputAxisDriver 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("CinemachineInputAxisDriver has been deprecated. Use DefaultInputAxisDriver instead.")]
    [Serializable]
    public struct CinemachineInputAxisDriver

    Fields

    accelTime

    The amount of time in seconds it takes to accelerate to a higher speed

    Declaration
    [Tooltip("The amount of time in seconds it takes to accelerate to a higher speed")]
    public float accelTime
    Field Value
    Type Description
    float

    decelTime

    The amount of time in seconds it takes to decelerate to a lower speed

    Declaration
    [Tooltip("The amount of time in seconds it takes to decelerate to a lower speed")]
    public float decelTime
    Field Value
    Type Description
    float

    inputValue

    The value of the input axis. A value of 0 means no input. You can drive "this directly from a custom input system, or you can set the Axis Name and have the value driven by the internal Input Manager

    Declaration
    [Tooltip("The value of the input axis.  A value of 0 means no input.  You can drive this directly from a custom input system, or you can set the Axis Name and have the value driven by the internal Input Manager")]
    public float inputValue
    Field Value
    Type Description
    float

    multiplier

    Multiply the input by this amount prior to processing. Controls the input power

    Declaration
    [Tooltip("Multiply the input by this amount prior to processing.  Controls the input power.")]
    public float multiplier
    Field Value
    Type Description
    float

    name

    The name of this axis as specified in Unity Input manager. Setting to an empty string will disable the automatic updating of this axis

    Declaration
    [Tooltip("The name of this axis as specified in Unity Input manager. Setting to an empty string will disable the automatic updating of this axis")]
    public string name
    Field Value
    Type Description
    string

    Methods

    Update(float, ref AxisBase)

    Update the axis

    Declaration
    public bool Update(float deltaTime, ref AxisBase axis)
    Parameters
    Type Name Description
    float deltaTime

    current deltaTime

    AxisBase axis

    The AxisState to update

    Returns
    Type Description
    bool

    True if the axis value changed due to user input, false otherwise

    Update(float, ref AxisState)

    Support for legacy AxisState struct: update the axis

    Declaration
    public bool Update(float deltaTime, ref AxisState axis)
    Parameters
    Type Name Description
    float deltaTime

    current deltaTime

    AxisState axis

    The AxisState to update

    Returns
    Type Description
    bool

    True if the axis value changed due to user input, false otherwise

    Validate()

    Call from OnValidate: Make sure the fields are sensible

    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)