{!See https://docs.google.com/document/d/1takg_GmIBBKKTj-GHZCwzxohpQz7Bhekivkk72kYMtE/edit for reference implementation of OneTrust, dataLayer and GTM} {!OneTrust Cookies Consent} {!OneTrust Cookies Consent end} {!dataLayer initialization push} {!dataLayer initialization push end} {!Google Tag Manager} {!Google Tag Manager end} Class Draggable | App UI | 0.6.5
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class Draggable

    Manipulator which monitors Press, Hold and Release events in order to drag visuals.

    Inheritance
    object
    Manipulator
    MouseManipulator
    PointerManipulator
    Pressable
    Draggable
    Implements
    IManipulator
    Inherited Members
    Pressable.clicked
    Pressable.clickedWithEventInfo
    Pressable.longClicked
    Pressable.active
    Pressable.longPressDuration
    Pressable.keepEventPropagation
    Pressable.ForceActivePseudoState()
    Pressable.RegisterCallbacksOnTarget()
    Pressable.UnregisterCallbacksFromTarget()
    PointerManipulator.CanStartManipulation(IPointerEvent)
    PointerManipulator.CanStopManipulation(IPointerEvent)
    MouseManipulator.CanStartManipulation(IMouseEvent)
    MouseManipulator.CanStopManipulation(IMouseEvent)
    MouseManipulator.activators
    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
    Assembly: solution.dll
    Syntax
    public class Draggable : Pressable, IManipulator

    Constructors

    Name Description
    Draggable(Action, Action<Draggable>, Action<Draggable>, Action<Draggable>)

    Construct a Draggable manipulator.

    Properties

    Name Description
    deltaPos

    The delta position between the last frame and the current one.

    hasMoved

    Has the pointer moved since the last PointerDownEvent.

    localPosition

    The local position received from the imGui native event.

    position

    The world position received from the imGui native event.

    Methods

    Name Description
    Cancel()

    Cancel the drag operation.

    ProcessDownEvent(EventBase, Vector2, int)

    This method processes the down event sent to the target Element.

    ProcessMoveEvent(EventBase, Vector2)

    This method processes the move event sent to the target Element.

    ProcessUpEvent(EventBase, Vector2, int)

    This method processes the up event sent to the target Element.

    In This Article
    Back to top
    Copyright © 2023 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)