Description
The IsInstalled
property of the Editor.DragAssetData
class indicates whether the asset is ready for use locally. This property returns true
if the asset is installed and available for immediate use. For cloud-based assets, the download process will only commence after the first invocation of the GetAssetAsync method.
Usage
Use the IsInstalled
property to check if an asset is available for use without needing to initiate a download. This is particularly useful for determining the readiness of local assets or to verify if a cloud asset has been downloaded and installed after calling GetAssetAsync
.
Example
// Example of checking if an asset is installed
Editor.DragAssetData assetData = new Editor.DragAssetData();
if (assetData.IsInstalled)
{
// Asset is ready for use
// Proceed with operations that require the asset
}
else
{
// Asset is not yet installed
// You may need to call GetAssetAsync to start the download process
}