DragDataclass

Contains drag and drop data for tool widgets. See `Editor.Widget.DragEvent`.

objectQObjectDragData
Namespace
Editor
Assembly
Sandbox.Tools
Declaration
public class Editor.DragData : Editor.QObject

Constructors1

Showing 1 constructors

Methods2

Showing 2 methods

Properties8

Showing 8 properties

public System.Collections.Generic.IReadOnlyList`1<Editor.DragAssetData> Editor.DragData.Assets { get; set; }PUBLICGETSET

Interprets `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` changes.

Returns:IReadOnlyList<DragAssetData>

public string Editor.DragData.FileOrFolder { get; set; }PUBLICGETSET

The first file or folder in the drag data.

Returns:string

public string[] Editor.DragData.Files { get; set; }PUBLICGETSET

All files and folders in the drag data.

Returns:string[]

public bool Editor.DragData.HasFileOrFolder { get; set; }PUBLICGETSET

Whether the drag data has at least 1 file or folder.

Returns:bool

public string Editor.DragData.Html { get; set; }PUBLICGETSET

HTML data of the drag and drop event, if any.

Returns:string

public object Editor.DragData.Object { get; set; }PUBLICGETSET

An object that can be used to pass drag and drop data

Returns:object

public string Editor.DragData.Text { get; set; }PUBLICGETSET

Text data of the drag and drop event.

Returns:string

public System.Uri Editor.DragData.Url { get; set; }PUBLICGETSET

URL data of the drag and drop event, if any.

Returns:Uri

On this page