DropTarget
Up and coming: shot check knows this class and its members today, and programs run it once the native runtime lands.
Up and coming
Make a UIObject take drops: dragged objects with a matching tag, or files from File Explorer.
Put it under the UIObject that takes drops; while something it accepts is over it, its highlight eases in. Dropped passes the DragDetector's Data and the position. With "Files" in Accepts, FilesDropped passes the paths of files dragged in from File Explorer.
Made with Instance.new("DropTarget") or Clone().
Properties
| Name | Type | Default | Description |
|---|---|---|---|
| Accepts | { string } | The DragDetector tags it takes, or "Files" for files from File Explorer. | |
| Hovered | boolean | read-only |
Events
| Name | Passes | Description |
|---|---|---|
| Dropped | (any, Vector2) | Passes the dropped DragDetector's Data and where it was dropped. |
| FilesDropped | ({ string }, Vector2) | Passes the paths of files dropped from File Explorer and where they landed. |
From ShotInstance 33
ClassNameNameParentAncestryChangedAttributeChangedChangedChildAddedChildRemovedDestroyingAddTagClearAllChildrenCloneDestroyFindFirstAncestorFindFirstAncestorOfClassFindFirstAncestorWhichIsAFindFirstChildFindFirstChildOfClassFindFirstChildWhichIsAGetAttributeGetAttributeChangedSignalGetAttributesGetChildrenGetDescendantsGetFullNameGetPropertyChangedSignalGetTagsHasTagIsAIsAncestorOfIsDescendantOfRemoveTagSetAttribute
