Skip to content
API referenceDevelopmentRuntime scriptingEngine ccf7d03f
Synced
  • Acquires a canonical asset by persistent identity and explicitly retains it.

API: scripting
Project: Inno.Assets
Scope: Runtime

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

Type parameter TAsset: Required asset contract.

Parameter persistentId: Persistent asset identity.

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

A lease that owns residency for the canonical asset.