s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejamslive now

Game Jam III

Ends Fri 25 Sep
ThemeOne More Round

The jam is running. Build something, or play the entries.

£50,000
prizepool
View the jam
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
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.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter