Vixen
dd8b0a81
csharp
public interface IAssetSources

Where an import finds another asset's source, given its id.

No guide page documents this yet — the page shows what the code says about itself.

Remarks

⚠ This is the wall doc 47 § 2 chose a whole file format around, and it is one method. An importer was handed its own Guid, its own SourcePath, a provider over paths and a DependsOn(AssetId) that declares an edge and returns nothing — so a scene could name a prefab and no importer could open it. Doc 47 took model (C) over Unity's sparse patch for that reason, and navigation's placement bake stopped at the same wall from the other side.

A separate interface rather than a method on the pipeline, because an import may not be in this process. IImportExecutor is a process boundary: an ImportJob is five strings and a flag, and shipping a project's whole guid-to-path index across it per job would cost more than the imports. So whoever builds an executor supplies the lookup, and a worker builds its own from the project it was pointed at.

Methods (1)

  • bool TryGetPath(AssetId asset, out VirtualPath path)

    Finds where an asset's source file is.

Used by (6)

  • ImportContextVixen.Editor.Assets
  • ImportResolveTestsVixen.Editor.Assets.Tests
  • InProcessImportExecutorVixen.Editor.Assets
  • ProjectAssetSourcesVixen.Editor.Assets
  • WorkerHostVixen.AssetCompiler
  • WorkerResolveTestsVixen.AssetCompiler.Tests