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: scripting
Project: Inno.Assets.Pipeline
Scope: Editor
Declaration
Section titled “Declaration”public TAsset InnoEditor.Assets.AssetImportContext.ResolveDependency<TAsset>(InnoEngine.Assets.AssetPath path) where TAsset : InnoEngine.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.