docs.unity3d.com
    Show / Hide Table of Contents

    Struct InputActionTrace.ActionEventPtr

    A wrapper around UnityEngine.InputSystem.LowLevel.ActionEvent that automatically translates all the information in events into their high-level representations.

    Namespace: UnityEngine.InputSystem.Utilities
    Syntax
    public struct ActionEventPtr
    Remarks

    For example, instead of returning UnityEngine.InputSystem.LowLevel.ActionEvent.controlIndex, it automatically resolves and returns the respective InputControl.

    Properties

    action

    Declaration
    public InputAction action { get; }
    Property Value
    Type Description
    InputAction

    control

    Declaration
    public InputControl control { get; }
    Property Value
    Type Description
    InputControl

    duration

    Declaration
    public double duration { get; }
    Property Value
    Type Description
    Double

    interaction

    Declaration
    public IInputInteraction interaction { get; }
    Property Value
    Type Description
    IInputInteraction

    phase

    Declaration
    public InputActionPhase phase { get; }
    Property Value
    Type Description
    InputActionPhase

    startTime

    Declaration
    public double startTime { get; }
    Property Value
    Type Description
    Double

    time

    Declaration
    public double time { get; }
    Property Value
    Type Description
    Double

    valueSizeInBytes

    Declaration
    public int valueSizeInBytes { get; }
    Property Value
    Type Description
    Int32

    Methods

    ReadValue(Void*, Int32)

    Declaration
    public void ReadValue(void *buffer, int bufferSize)
    Parameters
    Type Name Description
    Void* buffer
    Int32 bufferSize

    ReadValue<TValue>()

    Declaration
    public TValue ReadValue<TValue>()
        where TValue : struct
    Returns
    Type Description
    TValue
    Type Parameters
    Name Description
    TValue

    ReadValueAsObject()

    Declaration
    public object ReadValueAsObject()
    Returns
    Type Description
    Object

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    String
    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