Synced
AssetImportContext
Section titled “AssetImportContext”
- Collects source data and dependency declarations for one import operation.
Required contracts
Section titled “Required contracts”API: scripting
Inherits: object
Project: Inno.Assets.Pipeline
Scope: Editor
Declaration
Section titled “Declaration”public sealed class InnoEditor.Assets.AssetImportContextMembers
Section titled “Members”| Kind | Element | Description |
|---|---|---|
| Constructors | AssetImportContext.Constructor | Appears in the generated script reference without a matching public or protected engine constructor. |
| Methods | AssetImportContext.AcquireArtifact | Acquires an immutable dependency output and records its invalidation dependency automatically. |
| Methods | AssetImportContext.DependsOnArtifact | Declares an imported artifact that invalidates this imported asset. |
| Methods | AssetImportContext.DependsOnAsset(InnoEngine.Assets.AssetDependency) | Declares a direct runtime dependency by persistent descriptor. |
| Methods | AssetImportContext.DependsOnAsset(InnoEngine.Assets.AssetPath) | Declares a direct runtime dependency by isolated source path. |
| Methods | AssetImportContext.DependsOnCustomInput | Declares a custom deterministic input that invalidates this asset. |
| Methods | AssetImportContext.DependsOnSource | Declares a source file that invalidates this imported asset. |
| Methods | AssetImportContext.ReadSourceBytes | Reads another source from the same candidate mount snapshot and records it as an import dependency. |
| Methods | AssetImportContext.ReadSourceUtf8Text | Reads another source as UTF-8 from the current candidate mount snapshot and records the dependency. |
| Methods | AssetImportContext.ReadUtf8Text | Reads the source bytes as UTF-8 text. |
| Methods | AssetImportContext.ResolveDependency | Resolves and declares a strongly typed runtime asset dependency during import. |
| Properties | AssetImportContext.absolutePath | Gets the absolute source path. |
| Properties | AssetImportContext.assetPath | Gets the isolated source path. |
| Properties | AssetImportContext.extension | Gets the normalized lower-case source extension. |
| Properties | AssetImportContext.importSettings | Gets the settings restored from this source’s sidecar against the isolated import generation. The value is detached and changes made during import are not saved to the sidecar. |
| Properties | AssetImportContext.persistentId | Gets the persistent identity assigned to the source asset. |
| Properties | AssetImportContext.serialization | Gets the serialization registry bound to the active import generation. |
| Properties | AssetImportContext.services | Gets the narrow structured serialization API bound to this importer candidate. |
| Properties | AssetImportContext.sourceBytes | Gets the raw source bytes. |
| Properties | AssetImportContext.sourceHash | Gets the deterministic source hash. |