Skip to content

feat: builder mode support#161

Merged
RocioCM merged 12 commits into
masterfrom
feat/builder-mode-support
Apr 7, 2026
Merged

feat: builder mode support#161
RocioCM merged 12 commits into
masterfrom
feat/builder-mode-support

Conversation

@RocioCM

@RocioCM RocioCM commented Mar 12, 2026

Copy link
Copy Markdown
Member

Summary

Related PRs

Changes

  • Add support for uncompressed AANG builds during development
  • Add missing unity emotes controller methods
  • Fix double loading spinner in builder when unity={true}
  • Update aang build with mode=builder support
  • Fix boolean params parsing on unity preview
  • Add missing screenshot base64 header in unity TakeScreenshot

Test cases and screenshots

Available on the related PR from builder: decentraland/builder#3275

@vercel

vercel Bot commented Mar 12, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
wearable-preview Ready Ready Preview, Comment Apr 2, 2026 7:08pm

Request Review

@RocioCM RocioCM changed the title [WIP] feat: builder mode support feat: builder mode support Apr 2, 2026
@RocioCM RocioCM self-assigned this Apr 2, 2026
@RocioCM
RocioCM requested a review from Copilot April 2, 2026 18:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

Comment thread src/lib/unity/render.ts
Comment thread src/hooks/useOptions.ts Outdated
Comment thread src/components/UnityPreview/UnityPreview.tsx
Comment thread src/components/UnityPreview/UnityPreview.tsx
Comment thread scripts/sync-dev-unity-renderer.cjs
@RocioCM
RocioCM merged commit 94ac427 into master Apr 7, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow loading NON compressed aang builds

4 participants