docs.unity3d.com
    Show / Hide Table of Contents

    Class TrackpadGestureManipulator

    A manipulator that can be used to receive trackpad gestures.

    Inheritance
    Object
    Manipulator
    TrackpadGestureManipulator
    Inherited Members
    Manipulator.target
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Unity.AppUI.UI
    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()

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

    UnregisterCallbacksFromTarget()

    Declaration
    protected override void UnregisterCallbacksFromTarget()
    Overrides
    Manipulator.UnregisterCallbacksFromTarget()
    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