Repository navigation
feat(export)!: run unity.export once per unit instead of once per bundle - #63
Merged
Merged
Conversation
unity.export (version 2) runs one task per unit: a prefab hierarchy (a root GameObject with the objects its prefab holds) or an object outside any hierarchy, named by the stable address of its root object, `<bundle>:<pathId>`. The unit table (nnnotes.pipeline.units) comes from the censuses: a run exports the units of the selected bundles and every unit their objects reference, and `--only-class` selects units by the class of their root object instead of entering the task keys. - The tasks of one bundle form one batch: a worker loads the bundle once and shares its object index, hierarchies, atlases and last decoded textures across them. A unit's result does not depend on the other units of the batch or their order. - A task key covers the bundle, the unit's root, the converters of its classes and the script entries and shipped type trees its objects use, so a converter or script change runs again only the units holding it. - MonoScript and AssetBundle objects get the typetree JSON like any other class. - The original layout roots objects without a container path at `_bundles/<bundle>` from the unit table; cri.audio, cri.movie, sprite.crop and view.voices find bundle-held content through it. BREAKING CHANGE: unity.export task ids are `unity.export:<bundle>:<pathId>`. The bundle-level artifacts `scripts.json` and `bundle.json`, the link.artifacts stage and the nnnotes.artifacts/1 schema are removed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
Summary
unity.export(version 2) now runs one task per unit:<bundle>:<pathId>.Unit table and selection
nnnotes.pipeline.units) is built from the censuses.refs).--only-classnow selects units by the class of their root object. It is no longer part of the task keys.Batching and keys
Other changes
scripts.jsonandbundle.jsonartifacts are removed, as are thelink.artifactsstage and thennnotes.artifacts/1schema.originallayout roots objects without a container path at_bundles/<bundle>, from the unit table.cri.audio,cri.movie,sprite.cropandview.voicesfind bundle-held content through the unit table.stages.mdhas a new "Units" section, andassets.md,contracts.md,schemas.mdandcli.mdare updated.Test plan
GOLDENS_STRICT=1mkdocs build --strict🤖 Generated with Claude Code