Class InputStateHistory<TValue> | Package Manager UI website
docs.unity.cn
    Show / Hide Table of Contents

    Class InputStateHistory<TValue>

    Records value changes of a given control over time.

    Inheritance
    System.Object
    InputStateHistory
    InputStateHistory<TValue>
    Inherited Members
    InputStateHistory.GetStatePtr(Int32)
    InputStateHistory.Dispose()
    InputStateHistory.Destroy()
    InputStateHistory.control
    InputStateHistory.historySize
    InputStateHistory.Count
    System.Object.ToString()
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: UnityEngine.Experimental.Input
    Syntax
    public class InputStateHistory<TValue> : InputStateHistory, IReadOnlyList<TValue>, IDisposable where TValue : struct
    Type Parameters
    Name Description
    TValue

    Constructors

    InputStateHistory(InputControl<TValue>)

    Declaration
    public InputStateHistory(InputControl<TValue> control)
    Parameters
    Type Name Description
    InputControl<TValue> control

    Properties

    Item[Int32]

    Declaration
    public TValue this[int index] { get; }
    Parameters
    Type Name Description
    System.Int32 index
    Property Value
    Type Description
    TValue

    Methods

    Enable()

    Declaration
    public void Enable()

    Finalize()

    Declaration
    protected void Finalize()

    GetEnumerator()

    Declaration
    public IEnumerator<TValue> GetEnumerator()
    Returns
    Type Description
    IEnumerator<TValue>
    Back to top Copyright © 2015-2018 Unity
    Generated by DocFX