Class DropZone
A drop zone is a container that can be used to drop content into.
Implements
Inherited Members
Namespace: Unity.AppUI .UI
Assembly: solution.dll
Syntax
public class DropZone : VisualElement, IEventHandler, ITransform, ITransitionAnimations, IExperimentalFeatures, IVisualElementScheduler, IResolvedStyle
Constructors
Name | Description |
---|---|
Drop |
Create a new DropZone. |
Drop |
Create a new DropZone. |
Fields
Name | Description |
---|---|
background |
The DropZone background styling class. |
frame |
The DropZone frame styling class. |
state |
The DropZone state styling class. |
uss |
The DropZone main styling class. |
visible |
The DropZone visible indicator styling class. |
Properties
Name | Description |
---|---|
clickable | The Pressable used to handle click events. |
content |
The container used to display the content. |
state | The state of the DropZone. |
try |
Method invoked when a drag is started to find any droppable object(s) that can be dropped on the target using the current drag and drop path data. See paths for more information. |
try |
Method invoked when a drag is started to find any droppable object(s) that can be dropped on the target. |
try |
Method invoked when a drag is started to find any droppable object(s) that can be dropped on the target using the current drag and drop objects data.
See object |
visible |
The visible indicator state of the DropZone. |
Events
Name | Description |
---|---|
drag |
Event fired when the user stops dragging droppable object(s). Use this event to perform any cleanup after a drag and drop operation. |
drag |
Event fired when the user starts dragging droppable object(s). Use this event to perform validate the drag and drop operation via the state property. |
dropped | Event fired when the user drops droppable object(s) on the target. |