{!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 DropTarget<T> | App UI | 0.6.5
docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class DropTarget<T>

    A droppable is a container that can be used to drop content into.

    Inheritance
    object
    Manipulator
    DropTarget<T>
    Implements
    IManipulator
    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
    Assembly: solution.dll
    Syntax
    public class DropTarget<T> : Manipulator, IManipulator
    Type Parameters
    Name Description
    T

    The type of the object that can be dropped on the target.

    Constructors

    Name Description
    DropTarget()

    Constructor.

    Properties

    Name Description
    isDragging

    True if the user is currently dragging droppable object(s) over the target, false otherwise.

    Methods

    Name Description
    GetDroppableObjectForPath(string, out T)

    This method is called when the user drops a file on the target.

    GetDroppableObjects()

    This method is called to get the objects that can be dropped on the target.

    GetDroppableObjectsForUnityObjects(Object[], out List<T>)

    This method is called when the user drops a Unity object on the target.

    RegisterCallbacksOnTarget()

    Called to register event callbacks on the target element.

    Reset()

    Reset the DropTarget.

    UnregisterCallbacksFromTarget()

    Called to unregister event callbacks from the target element.

    Events

    Name Description
    dragEnded

    Event fired when the user stops dragging droppable object(s) over the target.

    dragStarted

    Event fired when the user starts dragging droppable object(s) over the target.

    dropped

    Event fired when the user drops droppable object(s) on the target.

    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)