Skip to content
API referenceDevelopmentRuntime scriptingEngine ccf7d03f
Synced
  • Acquires a canonical asset and explicitly retains it until the returned lease is disposed.

API: scripting
Project: Inno.Assets
Scope: Runtime

public static System.Threading.Tasks.ValueTask<InnoEngine.Assets.AssetLease<TAsset>> InnoEngine.Assets.Assets.AcquireAsync<TAsset>(InnoEngine.Assets.AssetPath path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) where TAsset : InnoEngine.Assets.AssetObject

Type parameter TAsset: Required asset contract.

Parameter path: Mount-qualified logical asset path.

Parameter cancellationToken: Cancellation for this caller’s asynchronous wait.

A lease that owns residency for the canonical asset.