feat: builder mode support#161
Merged
Merged
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
…o feat/builder-mode-support
There was a problem hiding this comment.
Pull request overview
Adds “builder mode” support for the Unity-based preview by extending Unity initialization/configuration and improving emote/social-emote handling so the preview can be driven more flexibly from URL/options.
Changes:
- Add support for choosing compressed vs uncompressed Unity build artifacts via
VITE_AANG_USE_UNCOMPRESSED. - Extend Unity preview config to pass the selected emote and social emote animation into the Unity emote controller.
- Adjust option parsing for boolean flags and wire UnityPreview to forward emote events to the parent.
Reviewed changes
Copilot reviewed 9 out of 14 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| src/lib/unity/scene.ts | Prefix Unity screenshots with a PNG data-URL header. |
| src/lib/unity/render.ts | Add build-config selection (compressed/uncompressed) and pass emote/social-emote into emote controller. |
| src/lib/unity/emote.ts | Add JS-side playback tracking + social-emote helpers; refactor Unity request/response handling. |
| src/hooks/useUnityConfig.ts | Extend UnityPreviewConfig with itemDefinition and socialEmote. |
| src/hooks/useOptions.ts | Change boolean query param parsing to accept explicit false. |
| src/components/UnityPreview/UnityPreview.tsx | Pass emote/social-emote into Unity render; forward emote events; start playback tracking on Unity loaded. |
| scripts/sync-dev-unity-renderer.cjs | Add syncing of optional uncompressed Unity artifacts; adjust missing-file handling. |
| public/unity/Build/aang-renderer.loader.js | Update Unity loader artifact (generated). |
| public/unity/Build/aang-renderer.framework.js.br | Add/update Unity framework artifact (generated, brotli). |
| .gitignore | Ignore uncompressed Unity build artifacts checked out locally. |
| .env.example | Document new Vite env flags (Unity + debug/bootstrap). |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
…o feat/builder-mode-support
nicoecheza
approved these changes
Apr 7, 2026
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
Related PRs
Changes
mode=buildersupportTest cases and screenshots
Available on the related PR from builder: decentraland/builder#3275