The DragAssetData class represents an asset being dragged into an editor window. Assets can either be sourced from a package or a local path. Instances of this type are accessed through DragData.Assets
.
The DragAssetData class represents an asset being dragged into an editor window. Assets can either be sourced from a package or a local path. Instances of this type are accessed through DragData.Assets
.
Member Name | Summary |
---|---|
GetPackageAsync |
For package assets, completes when the source package information is available. |
GetAssetAsync |
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. |
PackageIdent |
For package assets, the identifier of the source package. Will always be of the form org.package[#version] . |
AssetPath |
For local assets, the path to the asset. Equivalent to Asset.Path . |
DownloadProgress |
For cloud assets, a value between 0.0 and 1.0 representing download progress. Download will only start after the first call to GetAssetAsync . |
IsInstalled |
True when the asset is ready for use locally. For cloud assets, download will only start after the first call to GetAssetAsync . |