Synced
Assets.TryLoad
Section titled “Assets.TryLoad”
- Tries to load the canonical asset at a logical catalog path in the current session.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Assets
Scope: Runtime
Declaration
Section titled “Declaration”public static bool InnoEngine.Assets.Assets.TryLoad<TAsset>(InnoEngine.Assets.AssetPath path, out TAsset? asset) where TAsset : InnoEngine.Assets.AssetObjectType parameters
Section titled “Type parameters”Type parameter TAsset: The required asset contract.
Parameters
Section titled “Parameters”Parameter path: The mount-qualified logical catalog path.
Parameter asset: Receives the canonical compatible asset when available.
Returns
Section titled “Returns”true when the current lookup contains a compatible asset; otherwise, false.
Exceptions
Section titled “Exceptions”Exception T:System.InvalidOperationException: Thrown when no asset lookup is active for the caller.