s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
live now
Game Jam III
Ends
Fri 25 Sep
Theme
One More Round
The jam is running. Build something, or play the entries.
£
50,000
prizepool
View the jam
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Editor Classes
DragData
chevron_left
Editor Classes
class
DragData
Constructors
functions
DragData
Properties
data_object
Assets
data_object
FileOrFolder
data_object
Files
data_object
HasFileOrFolder
data_object
Html
data_object
Object
data_object
Text
data_object
Url
Methods
functions
OfType
DragData
Contains drag and drop data for tool widgets. See Editor.Widget.DragEvent.
class
Editor
.
account_tree
extends
QObject
Sandbox.Tools
build
Constructors
1
DragData
(
)
data_object
Properties
8
Assets
IReadOnlyList`1
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.
FileOrFolder
string
The first file or folder in the drag data.
Files
String[]
All files and folders in the drag data.
HasFileOrFolder
bool
Whether the drag data has at least 1 file or folder.
Html
string
HTML data of the drag and drop event, if any.
Object
object
An object that can be used to pass drag and drop data
Text
string
Text data of the drag and drop event.
Url
Uri
URL data of the drag and drop event, if any.
functions
Methods
1
OfType
(
)
IEnumerable`1
Helper for finding instances of type
in Editor.DragData.Object. Will find matches if Editor.DragData.Object is of type
, is an System.Collections.IEnumerable with
items, or a Sandbox.SerializedObject with
targets.
Inheritance
QObject
DragData
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.