docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class InputStateHistory<TValue>

    Records value changes of a given control over time.

    Inheritance
    object
    InputStateHistory
    InputStateHistory<TValue>
    Implements
    IDisposable
    IEnumerable<InputStateHistory.Record>
    IInputStateChangeMonitor
    IReadOnlyList<InputStateHistory<TValue>.Record>
    IReadOnlyCollection<InputStateHistory<TValue>.Record>
    IEnumerable<InputStateHistory<TValue>.Record>
    IEnumerable
    Inherited Members
    InputStateHistory.Count
    InputStateHistory.version
    InputStateHistory.historyDepth
    InputStateHistory.extraMemoryPerRecord
    InputStateHistory.updateMask
    InputStateHistory.controls
    InputStateHistory.onRecordAdded
    InputStateHistory.onShouldRecordStateChange
    InputStateHistory.Clear()
    InputStateHistory.AddRecord(InputStateHistory.Record)
    InputStateHistory.StartRecording()
    InputStateHistory.StopRecording()
    InputStateHistory.RecordStateChange(InputControl, InputEventPtr)
    InputStateHistory.RecordStateChange(InputControl, void*, double)
    InputStateHistory.Dispose()
    InputStateHistory.Destroy()
    InputStateHistory.RecordIndexToUserIndex(int)
    InputStateHistory.UserIndexToRecordIndex(int)
    InputStateHistory.GetRecord(int)
    InputStateHistory.AllocateRecord(out int)
    InputStateHistory.ReadValue<TValue>(InputStateHistory.RecordHeader*)
    InputStateHistory.ReadValueAsObject(InputStateHistory.RecordHeader*)
    Namespace: UnityEngine.InputSystem.LowLevel
    Assembly: Unity.InputSystem.dll
    Syntax
    public class InputStateHistory<TValue> : InputStateHistory, IDisposable, IEnumerable<InputStateHistory.Record>, IInputStateChangeMonitor, IReadOnlyList<InputStateHistory<TValue>.Record>, IReadOnlyCollection<InputStateHistory<TValue>.Record>, IEnumerable<InputStateHistory<TValue>.Record>, IEnumerable where TValue : struct
    Type Parameters
    Name Description
    TValue

    Constructors

    InputStateHistory(int?)

    Declaration
    public InputStateHistory(int? maxStateSizeInBytes = null)
    Parameters
    Type Name Description
    int? maxStateSizeInBytes

    InputStateHistory(string)

    Declaration
    public InputStateHistory(string path)
    Parameters
    Type Name Description
    string path

    InputStateHistory(InputControl<TValue>)

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

    Properties

    this[int]

    Declaration
    public InputStateHistory<TValue>.Record this[int index] { get; set; }
    Parameters
    Type Name Description
    int index
    Property Value
    Type Description
    InputStateHistory<TValue>.Record

    Methods

    AddRecord(Record)

    Declaration
    public InputStateHistory<TValue>.Record AddRecord(InputStateHistory<TValue>.Record record)
    Parameters
    Type Name Description
    InputStateHistory<TValue>.Record record
    Returns
    Type Description
    InputStateHistory<TValue>.Record

    ~InputStateHistory()

    Declaration
    protected ~InputStateHistory()

    GetEnumerator()

    Declaration
    public IEnumerator<InputStateHistory<TValue>.Record> GetEnumerator()
    Returns
    Type Description
    IEnumerator<InputStateHistory<TValue>.Record>

    RecordStateChange(InputControl<TValue>, TValue, double)

    Declaration
    public InputStateHistory<TValue>.Record RecordStateChange(InputControl<TValue> control, TValue value, double time = -1)
    Parameters
    Type Name Description
    InputControl<TValue> control
    TValue value
    double time
    Returns
    Type Description
    InputStateHistory<TValue>.Record

    Implements

    IDisposable
    IEnumerable<T>
    IInputStateChangeMonitor
    IReadOnlyList<T>
    IReadOnlyCollection<T>
    IEnumerable<T>
    IEnumerable
    In This Article
    Back to top
    Copyright © 2024 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)