Create asset exporter interface#330
Merged
waynemwashuma merged 10 commits intoMay 31, 2026
Merged
Conversation
597de44 to
321f482
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Objective
Introduce asset exporting support to the asset pipeline.This adds a first-class exporter abstraction to
AssetServer, enabling assets to be serialized and saved back to storage in a format-aware manner. This establishes the foundation for editor workflows, asset authoring tools, and runtime asset persistence.Solution
Previously, the asset system only supported importing assets through parsers. There was no corresponding mechanism for serializing runtime assets back into a file format, making asset editing and persistence impossible through the asset pipeline.
Changes made
Added
ExporterabstractionIntroduced a new base class
Exporter<T>mirroring the existing parser architecture and allows asset types to support one or more output formats.Example:
Added exporter registration support
Introduced
AssetServer.registerExporter(...)andAssetExporterPluginwhich allows exporters to be registered through the plugin system in the same way parsers are registered today.Example:
Added asset saving support
Introduced:
which:
Example:
If no path is provided, the server attempts to reuse the asset's registered source path.
Added save failure reporting
Asset failures previously only represented loading operations. Introduced
AssetLoadOperationand extendedAssetLoadFailto include operation context. This allows tooling and diagnostics to distinguish between import and export failures.Why this approach
The exporter system mirrors the existing parser architecture:
This symmetry keeps the asset pipeline predictable and extensible.
It also provides a clean foundation for future features such as:
Showcase
Save an asset:
The exporter serializes the asset and submits the result to the target path.
Migration guide
No migration required.
Checklist