docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class TrackpadGestureManipulator

    A manipulator that can be used to receive trackpad gestures.

    Inheritance
    object
    Manipulator
    TrackpadGestureManipulator
    Implements
    IManipulator
    Inherited Members
    Manipulator.target
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.AppUI.UI
    Assembly: Unity.AppUI.dll
    Syntax
    public class TrackpadGestureManipulator : Manipulator, IManipulator

    Constructors

    TrackpadGestureManipulator(Action<PanGesture>, Action<MagnificationGesture>)

    Creates a new instance of TrackpadGestureManipulator.

    Declaration
    public TrackpadGestureManipulator(Action<PanGesture> onPan = null, Action<MagnificationGesture> onMagnify = null)
    Parameters
    Type Name Description
    Action<PanGesture> onPan

    The callback that will be invoked when a pan gesture is recognized.

    Action<MagnificationGesture> onMagnify

    The callback that will be invoked when a magnification gesture is recognized.

    Properties

    onMagnify

    The callback that will be invoked when a magnification gesture is recognized.

    Declaration
    public Action<MagnificationGesture> onMagnify { get; set; }
    Property Value
    Type Description
    Action<MagnificationGesture>

    onPan

    The callback that will be invoked when a pan gesture is recognized.

    Declaration
    public Action<PanGesture> onPan { get; set; }
    Property Value
    Type Description
    Action<PanGesture>

    Methods

    RegisterCallbacksOnTarget()

    Called to register event callbacks on the target element.

    Declaration
    protected override void RegisterCallbacksOnTarget()
    Overrides
    Manipulator.RegisterCallbacksOnTarget()

    UnregisterCallbacksFromTarget()

    Called to unregister event callbacks from the target element.

    Declaration
    protected override void UnregisterCallbacksFromTarget()
    Overrides
    Manipulator.UnregisterCallbacksFromTarget()

    Implements

    IManipulator
    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)