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.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.Cinemachine
    Assembly: solution.dll
    Syntax
    [Obsolete("CinemachineInputAxisDriver has been deprecated. Use DefaultInputAxisDriver instead.")]
    [Serializable]
    public struct CinemachineInputAxisDriver

    Fields

    Name Description
    accelTime

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

    decelTime

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

    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

    multiplier

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

    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

    Methods

    Name Description
    Update(float, ref AxisBase)

    Update the axis

    Update(float, ref AxisState)

    Support for legacy AxisState struct: update the axis

    Validate()

    Call from OnValidate: Make sure the fields are sensible

    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)