Struct InputActionTrace.ActionEventPtr | Package Manager UI website
docs.unity.cn
    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 © 2015-2018 Unity
    Generated by DocFX