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

API: engine
Project: Inno.Assets

public TAsset Inno.Assets.AssetDatabase.Load<TAsset>(System.Guid persistentId) where TAsset : Inno.Assets.AssetObject

Type parameter TAsset: The required runtime asset contract.

Parameter persistentId: The non-empty persistent asset identity.

The canonical asset instance owned by this database.

Exception T:System.InvalidOperationException: Thrown when no asset has the identity or its concrete type is incompatible with TAsset.

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