Synced
AssetDatabase.AcquireAsync
Section titled “AssetDatabase.AcquireAsync”
- Acquires a canonical runtime asset by path for an explicit residency lifetime.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Assets
Declaration
Section titled “Declaration”public System.Threading.Tasks.ValueTask<Inno.Assets.AssetLease<TAsset>> Inno.Assets.AssetDatabase.AcquireAsync<TAsset>(Inno.Assets.AssetPath path, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) where TAsset : Inno.Assets.AssetObjectType parameters
Section titled “Type parameters”Type parameter TAsset: Required runtime asset contract.
Parameters
Section titled “Parameters”Parameter path: Mount-qualified logical asset path.
Parameter cancellationToken: Cancellation observed during preparation and before owner-thread materialization.
Returns
Section titled “Returns”A lease completed after verified preparation and owner-thread publication.