docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct AppUITouch

    A touch event received from a magic trackpad.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.AppUI.Core
    Assembly: Unity.AppUI.dll
    Syntax
    public struct AppUITouch
    Remarks

    Theses Touch events can be received from a magic trackpad on macOS.

    Constructors

    AppUITouch(int, Vector2, Vector2, float, TouchPhase)

    Constructor.

    Declaration
    public AppUITouch(int fingerId, Vector2 position, Vector2 deltaPos, float deltaTime, TouchPhase phase)
    Parameters
    Type Name Description
    int fingerId

    The unique identifier of the touch.

    Vector2 position

    The position of the touch in normalized coordinates.

    Vector2 deltaPos

    The delta position of the touch since the last frame.

    float deltaTime

    The delta time since the last frame.

    TouchPhase phase

    The phase of the touch.

    Properties

    deltaPos

    The delta position of the touch since the last frame.

    Declaration
    public readonly Vector2 deltaPos { get; }
    Property Value
    Type Description
    Vector2

    deltaTime

    The delta time since the last frame.

    Declaration
    public readonly float deltaTime { get; }
    Property Value
    Type Description
    float

    fingerId

    The unique identifier of the touch.

    Declaration
    public readonly int fingerId { get; }
    Property Value
    Type Description
    int

    phase

    The phase of the touch.

    Declaration
    public readonly TouchPhase phase { get; }
    Property Value
    Type Description
    TouchPhase

    position

    The position of the touch in normalized coordinates.

    Declaration
    public readonly Vector2 position { get; }
    Property Value
    Type Description
    Vector2

    Methods

    ToString()

    Returns a string representation of the touch.

    Declaration
    public override string ToString()
    Returns
    Type Description
    string

    A string representation of the touch.

    Overrides
    ValueType.ToString()
    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)