Synced
AssetLoader.TryLoad
Section titled “AssetLoader.TryLoad”
- Tries to load a canonical asset by isolated source path.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Assets.Pipeline
Declaration
Section titled “Declaration”public bool Inno.Assets.Pipeline.AssetLoader.TryLoad(Inno.Assets.AssetPath path, System.Type requestedAssetType, out Inno.Assets.AssetObject? asset)Parameters
Section titled “Parameters”Parameter path: The isolated source path.
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.