docs.unity.cn
    Show / Hide Table of Contents

    Class CinemachineInputAxisController.Reader

    Read an input value from legacy input or from and Input Action

    Inheritance
    Object
    CinemachineInputAxisController.Reader
    Namespace: Unity.Cinemachine
    Syntax
    [Serializable]
    public sealed class Reader : IInputAxisReader

    Methods

    GetValue(Object, IInputAxisOwner.AxisDescriptor.Hints)

    Get the current value of the axis.

    Declaration
    public float GetValue(Object context, IInputAxisOwner.AxisDescriptor.Hints hint)
    Parameters
    Type Name Description
    Object context

    The owner GameObject, can be used for logging diagnostics

    IInputAxisOwner.AxisDescriptor.Hints hint

    A hint for converting a Vector2 value to a float

    Returns
    Type Description
    Single

    The axis value

    Implements
    IInputAxisReader.GetValue(Object, IInputAxisOwner.AxisDescriptor.Hints)
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Saturday, May 6, 2023