Synced
AssetPipeline.LoadAsync
Section titled “AssetPipeline.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<TAsset> Inno.Assets.Pipeline.AssetPipeline.LoadAsync<TAsset>(System.Guid persistentId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) where TAsset : Inno.Assets.AssetObjectType parameters
Section titled “Type parameters”Type parameter TAsset: The required asset type.
Parameters
Section titled “Parameters”Parameter persistentId: The persistent asset identity.
Parameter cancellationToken: Cancellation for the current caller’s wait.
Returns
Section titled “Returns”The canonical asset instance.