Synced
IAssetLookup.TryLoad
Section titled “IAssetLookup.TryLoad”
- Tries to load the canonical asset with a persistent identity.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Assets
Declaration
Section titled “Declaration”bool Inno.Assets.IAssetLookup.TryLoad<TAsset>(System.Guid persistentId, out TAsset? asset) where TAsset : Inno.Assets.AssetObjectType parameters
Section titled “Type parameters”Type parameter TAsset: The required asset contract.
Parameters
Section titled “Parameters”Parameter persistentId: The non-empty persistent asset identity.
Parameter asset: Receives the canonical compatible asset when available.
Returns
Section titled “Returns”true when the lookup contains a compatible asset; otherwise, false.