Synced
AssetLoader.TryLoad
Section titled “AssetLoader.TryLoad”
- Tries to load a canonical asset by persistent identity.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Assets.Pipeline
Declaration
Section titled “Declaration”public bool Inno.Assets.Pipeline.AssetLoader.TryLoad(System.Guid persistentId, System.Type requestedAssetType, out Inno.Assets.AssetObject? asset)Parameters
Section titled “Parameters”Parameter persistentId: The persistent asset identity.
Parameter requestedAssetType: The required assignable asset type.
Parameter asset: The canonical asset when successful.
Returns
Section titled “Returns”true when a compatible asset was loaded.