Skip to content
API referenceDevelopmentRuntime scriptingEngine ccf7d03f
Synced
  • Loads the canonical asset at a logical catalog path in the current session.

API: scripting
Project: Inno.Assets
Scope: Runtime

public static TAsset InnoEngine.Assets.Assets.Load<TAsset>(InnoEngine.Assets.AssetPath path) where TAsset : InnoEngine.Assets.AssetObject

Type parameter TAsset: The required asset contract.

Parameter path: The mount-qualified logical catalog path.

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.