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