docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct InputStateHistory.RecordHeader

    State change record header

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Namespace: UnityEngine.InputSystem.LowLevel
    Assembly: Unity.InputSystem.dll
    Syntax
    protected struct InputStateHistory.RecordHeader
    Remarks

    Input State change record header containing the timestamp and other common record data. Stored in the InputStateHistory.

    Fields

    controlIndex

    The index of the record.

    Declaration
    public int controlIndex
    Field Value
    Type Description
    int
    Remarks

    The index of the record relative to the start of the buffer. See RecordIndexToUserIndex(int) to remap this record index to a user index.

    See Also
    InputStateHistory

    kSizeWithControlIndex

    Size of the state data including the control index.

    Declaration
    public const int kSizeWithControlIndex = 16
    Field Value
    Type Description
    int
    Remarks

    Size of the data including the control index.

    See Also
    InputStateHistory

    kSizeWithoutControlIndex

    Size of the state data excluding the control index.

    Declaration
    public const int kSizeWithoutControlIndex = 12
    Field Value
    Type Description
    int
    Remarks

    Size of the data excluding the control index.

    See Also
    InputStateHistory

    time

    The time stamp of the input state record.

    Declaration
    public double time
    Field Value
    Type Description
    double
    Remarks

    The time stamp of the input state record in the owning container. currentTime

    See Also
    InputStateHistory

    version

    The version of the input state record.

    Declaration
    public uint version
    Field Value
    Type Description
    uint
    Remarks

    Current version stamp. See version.

    See Also
    InputStateHistory

    Properties

    statePtrWithControlIndex

    The state data including the control index.

    Declaration
    public byte* statePtrWithControlIndex { get; }
    Property Value
    Type Description
    byte*
    Remarks

    The state data including the control index.

    See Also
    InputStateHistory

    statePtrWithoutControlIndex

    The state data excluding the control index.

    Declaration
    public byte* statePtrWithoutControlIndex { get; }
    Property Value
    Type Description
    byte*
    Remarks

    The state data excluding the control index.

    See Also
    InputStateHistory

    See Also

    InputStateHistory
    In This Article
    Back to top
    Copyright © 2025 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)