Synced
AssetLoader.LoadAsync
Section titled “AssetLoader.LoadAsync”
- Asynchronously loads a canonical asset by isolated source path.
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(Inno.Assets.AssetPath path, System.Type requestedAssetType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))Parameters
Section titled “Parameters”Parameter path: The isolated source path.
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.