Skip to content
API referenceDevelopmentEngine APIEngine ccf7d03f
Synced
  • Loads a canonical asset using a runtime asset type selected by an authoring workflow.

API: engine
Project: Inno.Assets.Pipeline

public Inno.Assets.AssetObject Inno.Assets.Pipeline.AssetPipeline.Load(Inno.Assets.AssetPath path, System.Type assetType)

Parameter path: The isolated source path.

Parameter assetType: The required concrete or base asset type.

The canonical asset instance assignable to assetType.

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.