Synced
AssetDatabase.Load
Section titled “AssetDatabase.Load”
- Loads the canonical asset with one persistent identity.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Assets
Declaration
Section titled “Declaration”public TAsset Inno.Assets.AssetDatabase.Load<TAsset>(System.Guid persistentId) where TAsset : Inno.Assets.AssetObjectType parameters
Section titled “Type parameters”Type parameter TAsset: The required runtime asset contract.
Parameters
Section titled “Parameters”Parameter persistentId: The non-empty persistent asset identity.
Returns
Section titled “Returns”The canonical asset instance owned by this database.
Exceptions
Section titled “Exceptions”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.