Skip to content
API referenceDevelopmentRuntime scriptingEngine ccf7d03f
Synced
  • Loads the canonical asset with a persistent identity in the current session.

API: scripting
Project: Inno.Assets
Scope: Runtime

public static TAsset InnoEngine.Assets.Assets.Load<TAsset>(System.Guid persistentId) where TAsset : InnoEngine.Assets.AssetObject

Type parameter TAsset: The required asset contract.

Parameter persistentId: The non-empty persistent asset identity.

The canonical compatible asset owned by the current lookup.

Exception T:System.InvalidOperationException: Thrown when no asset lookup is active, the asset does not exist, or its type is incompatible.