Synced
AssetImportContext.ResolveDependency
Section titled “AssetImportContext.ResolveDependency”
- Resolves and declares a strongly typed runtime asset dependency during import.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Assets.Pipeline
Declaration
Section titled “Declaration”public TAsset Inno.Assets.Pipeline.AssetImportContext.ResolveDependency<TAsset>(Inno.Assets.AssetPath path) where TAsset : Inno.Assets.AssetObjectType parameters
Section titled “Type parameters”Type parameter TAsset: Expected asset type.
Parameters
Section titled “Parameters”Parameter path: Isolated dependency path.
Returns
Section titled “Returns”The currently committed dependency asset.
Exceptions
Section titled “Exceptions”Exception T:System.InvalidOperationException: Thrown when the dependency cannot be imported or has another type.