Synced
AssetLoader.LoadAsync
Section titled “AssetLoader.LoadAsync”
- Asynchronously loads a canonical asset by persistent identity.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Assets.Pipeline
Declaration
Section titled “Declaration”public System.Threading.Tasks.ValueTask<Inno.Assets.AssetObject?> Inno.Assets.Pipeline.AssetLoader.LoadAsync(System.Guid persistentId, System.Type requestedAssetType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))Parameters
Section titled “Parameters”Parameter persistentId: The persistent asset identity.
Parameter requestedAssetType: The required assignable asset type.
Parameter cancellationToken: Cancellation for the current caller’s wait.
Returns
Section titled “Returns”The canonical asset, or null when unavailable or incompatible.