Synced
AssetPipeline.Load
Section titled “AssetPipeline.Load”
- Loads a canonical asset using a runtime asset type selected by an authoring workflow.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Assets.Pipeline
Declaration
Section titled “Declaration”public Inno.Assets.AssetObject Inno.Assets.Pipeline.AssetPipeline.Load(Inno.Assets.AssetPath path, System.Type assetType)Parameters
Section titled “Parameters”Parameter path: The isolated source path.
Parameter assetType: The required concrete or base asset type.
Returns
Section titled “Returns”The canonical asset instance assignable to assetType.
Exceptions
Section titled “Exceptions”Exception T:System.ArgumentNullException: Thrown when assetType is null.
Exception T:System.ArgumentException: Thrown when assetType does not derive from T:Inno.Assets.AssetObject.
Exception T:System.InvalidOperationException: Thrown when no compatible canonical asset can be loaded.