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
DragAssetData
chevron_left Editor Classes
class
DragAssetData

Properties

data_objectAssetPathdata_objectDownloadProgressdata_objectIsInstalleddata_objectPackageIdent

Methods

functionsGetAssetAsyncfunctionsGetPackageAsync
DragAssetData
Represents an asset being dragged into an editor window. Assets will either be sourced from a package (see Editor.DragAssetData.PackageIdent) or a local path (see Editor.DragAssetData.AssetPath). Instances of this type are accessed through Editor.DragData.Assets.
class Editor .
Sandbox.Tools

data_object Properties 4

AssetPath
string
For local assets, the path to the asset. Equivalent to Editor.Asset.Path.
DownloadProgress
float
For cloud assets, a value between 0.0 and 1.0 representing download progress. Download will only start after the first call to Editor.DragAssetData.GetAssetAsync.
IsInstalled
bool
True when the asset is ready for use locally. For cloud assets, download will only start after the first call to Editor.DragAssetData.GetAssetAsync.
PackageIdent
string
For package assets, the identifier of the source package. Will always be of the form org.package[#version].

functions Methods 2

GetAssetAsync ()
Task`1
Completes when the asset is ready to use. For cloud assets, the first call to this will start downloading and installing the source package. This is safe to call multiple times, the same task will be returned.
GetPackageAsync ()
Task`1
For package assets, completes when the source package information is available.
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