s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference schoolTutorials
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Editor Classes
DragData
chevron_left Editor Classes
class
DragData

Constructors

functionsDragData

Properties

data_objectAssetsdata_objectFileOrFolderdata_objectFilesdata_objectHasFileOrFolderdata_objectHtmldata_objectObjectdata_objectTextdata_objectUrl

Methods

functionsOfType
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.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter