Struct InputActionTrace.ActionEventPtr | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct InputActionTrace.ActionEventPtr

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

    Inherited Members
    System.ValueType.Equals(System.Object)
    System.ValueType.GetHashCode()
    System.ValueType.ToString()
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetType()
    Namespace: UnityEngine.Experimental.Input
    Syntax
    public struct ActionEventPtr
    Remarks

    For example, instead of returning control indices, 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
    System.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
    System.Double

    time

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

    valueSizeInBytes

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

    Methods

    ReadValue(Void*, Int32)

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

    ReadValue<TValue>()

    Declaration
    public TValue ReadValue<TValue>()where TValue : struct
    Returns
    Type Description
    TValue
    Type Parameters
    Name Description
    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