Class InputStateHistory<TValue> | Package Manager UI website
docs.unity3d.com
    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 © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023