Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Tries to load the canonical asset with one persistent identity.

API: engine
Project: Inno.Assets

public bool Inno.Assets.AssetDatabase.TryLoad<TAsset>(System.Guid persistentId, out TAsset? asset) where TAsset : Inno.Assets.AssetObject

Type parameter TAsset: The required runtime asset contract.

Parameter persistentId: The non-empty persistent asset identity.

Parameter asset: Receives the canonical compatible asset when available.

true when the deployed catalog contains a compatible asset; otherwise, false.

Exception T:System.ObjectDisposedException: Thrown when this database has been disposed.