Repository navigation
feat(export)!: census and export the APK's built-in Unity files - #60
Merged
Merged
Conversation
With `[paths] apk` set, the player's own Unity files under `assets/bin/Data/` of the APK are subjects of unity.census and unity.export: `apk/data.unity3d`, `apk/datapack.unity3d` and `apk/Resources/unity default resources`. The census always covers them; everything and `--select bundle:apk/*` export them. A serialized file outside a bundle is loaded under the name references into it use, so object ids such as `unity_builtin_extra:12` and `unity default resources:10` name objects these tasks export, and link.addresses maps their files to their subjects. These files store no type trees. MonoBehaviours are read with the type trees nnnotes ships for the game's classes (nnnotes.unity.scripttypes), checked against the stored type hash and the object's size; the export task's context carries the trees its objects use. A MonoBehaviour without one gives its header with `unsupported.typetree`, and PlayerSettings gives its fields up to `m_ActiveColorSpace`, the part its type tree reads right. generic.json is version 2. The CRI stages take their `boot` input from the built-in inputs. 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
[paths] apkset, the player's own Unity files underassets/bin/Data/(data.unity3d,datapack.unity3d,Resources/unity default resources) are subjects ofunity.censusandunity.export, namedapk/<path>. The census always covers them; everything and--select bundle:apk/*export them.unity_builtin_extra:12orunity default resources:10name exported objects, andlink.addressesmaps these files to their subjects.nnnotes.unity.scripttypes, moved out ofunity.player), checked by stored type hash and object size; the task context carries the trees used. Others give their header withunsupported.typetree; PlayerSettings gives its fields up tom_ActiveColorSpace.generic.jsonis version 2.bootfrom the built-in inputs.Test plan
--strictGOLDENS_STRICT=1Co-Authored-By: Claude Opus 5.5 noreply@anthropic.com