Class DropTarget<T>
A droppable is a container that can be used to drop content into.
Implements
Inherited Members
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. |