# Editor.DragData

Contains drag and drop data for tool widgets. See [Editor.Widget.DragEvent](/api/Editor.Widget.DragEvent).

- Kind: class
- Namespace: `Editor`
- Assembly: `Sandbox.Tools`
- Inherits: [Editor.QObject](/api/Editor.QObject)

## Constructors

- [`DragData`](/api/Editor.DragData/.ctor)

## Properties

- [`Assets`](/api/Editor.DragData/Assets): Interprets [Editor.DragData.Text](/api/Editor.DragData/Text) as a list of asset paths or cloud asset URLs, getting a list of helper objects to access each asset. Generated and cached internally on first access after [Editor.DragData.Text](/api/Editor.DragData/Text) changes.
- [`FileOrFolder`](/api/Editor.DragData/FileOrFolder): The first file or folder in the drag data.
- [`Files`](/api/Editor.DragData/Files): All files and folders in the drag data.
- [`HasFileOrFolder`](/api/Editor.DragData/HasFileOrFolder): Whether the drag data has at least 1 file or folder.
- [`Html`](/api/Editor.DragData/Html): HTML data of the drag and drop event, if any.
- [`Object`](/api/Editor.DragData/Object): An object that can be used to pass drag and drop data
- [`Text`](/api/Editor.DragData/Text): Text data of the drag and drop event.
- [`Url`](/api/Editor.DragData/Url): URL data of the drag and drop event, if any.

## Methods

- [`OfType`](/api/Editor.DragData/OfType): Helper for finding instances of type `T` in [Editor.DragData.Object](/api/Editor.DragData/Object). Will find matches if [Editor.DragData.Object](/api/Editor.DragData/Object) is of type `T`, is an `T:System.Collections.IEnumerable` with `T` items, or a [Sandbox.SerializedObject](/api/Sandbox.SerializedObject) with `T` targets.
