public static class ContentPipelineImporting and building a project, as calls that return data rather than print it.
No guide page documents this yet — the page shows what the code says about itself.
Remarks
The orchestration the CLI had, with the console taken out of it. Each step is a component that already existed; what lives here is the order they go in and the part that has to touch a filesystem. It reports through a callback rather than to a writer, because an editor puts a diagnostic in a panel and a tool puts it on stdout, and neither should own the other's output format.
⚠ A build packs what the import produced, so the two are ordered and not alternatives. The plan reads the import cache; a build run against a project that has never been imported plans nothing and writes an empty catalog, which looks exactly like a build that worked. Callers that mean "make me a build" call both.
Fields and properties (3)
public const string HashFileSuffixWhat the build writes beside the catalog, so a static host needs nothing else.
public const string CatalogFileNameThe catalog's file name, which is what a runtime and a server both expect.
public const string SceneManifestFileNameWhat the scenes-in-build manifest is called, beside the catalog.
Methods (4)
public static Task<ImportSummary> ImportAsync(ProjectWorkspace workspace, string target, Action<ContentDiagnostic> report, Action<ImportProgress>? progress = null, IImportExecutor? executor = null, CancellationToken cancellationToken = default(CancellationToken))Scans, then imports everything that needs it.
public static ContentBuildSummary Build(ProjectWorkspace workspace, string target, string outputDirectory, Action<ContentDiagnostic> report)Plans, packs and writes a content build.
public static ImportSeverity SeverityOf(AssetIssueKind kind)How loud an issue the scan found is.
public static BuildPlan Analyse(ProjectWorkspace workspace, Action<ContentDiagnostic> report)Plans a build without packing one, for whatever wants to know what it would say.
Used by (9)
- ContentBuildRunnerVixen.Cli
- ContentPipelineTestsVixen.Editor.Assets.Tests
- ContentTasksVixen.Editor.App
- EditorApplicationVixen.Editor.App
- EditorContentTestsVixen.Editor.App.Tests
- ImportRunnerVixen.Cli
- LooseContentVixen.Editor.Assets
- LooseContentTestsVixen.Editor.Assets.Tests
- SceneManifestTestsVixen.Editor.Assets.Tests