Class InputStateHistory<TValue>
Records value changes of a given control over time.
Inherited Members
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> |