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

API: scripting
Project: Inno.Assets
Scope: Runtime

public static bool InnoEngine.Assets.Assets.TryLoad<TAsset>(InnoEngine.Assets.AssetPath path, out TAsset? asset) where TAsset : InnoEngine.Assets.AssetObject

Type parameter TAsset: The required asset contract.

Parameter path: The mount-qualified logical catalog path.

Parameter asset: Receives the canonical compatible asset when available.

true when the current lookup contains a compatible asset; otherwise, false.

Exception T:System.InvalidOperationException: Thrown when no asset lookup is active for the caller.