Synced
Assets.AcquireAsync
Section titled “Assets.AcquireAsync”
- Acquires a canonical asset by persistent identity and explicitly retains it.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Assets
Scope: Runtime
Declaration
Section titled “Declaration”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.AssetObjectType parameters
Section titled “Type parameters”Type parameter TAsset: Required asset contract.
Parameters
Section titled “Parameters”Parameter persistentId: Persistent asset identity.
Parameter cancellationToken: Cancellation for this caller’s asynchronous wait.
Returns
Section titled “Returns”A lease that owns residency for the canonical asset.