Skip to content

fix: sdk billboard ignoring virtual cameras#6756

Merged
pravusjif merged 4 commits intodevfrom
fix/sdk-billboard-ignoring-vcams
Feb 25, 2026
Merged

fix: sdk billboard ignoring virtual cameras#6756
pravusjif merged 4 commits intodevfrom
fix/sdk-billboard-ignoring-vcams

Conversation

@pravusjif
Copy link
Member

@pravusjif pravusjif commented Jan 19, 2026

WHY

Currently if a scene uses a VirtualCamera (setting it as active in the MainCamera component), when that camera starts being the main active one, the entities with Billboard component still point towards the player camera, that is not the main active one...

WHAT

Corrected billboard system logic to always use the active camera data instead of the player camera data.

TEST INSTRUCTIONS

  1. Download this test scene and extract it somewhere
  2. In the scene root folder open a terminal and run npm i and then npm run start
  3. Close the Explorer that auto-opened. Leave the scene running in the console/terminal.
  4. Download the build from this PR and open it connected to the local scene (keep in mind its position is 0,0): https://github.com/decentraland/unity-explorer/wiki/How-to-connect-to-a-local-scene-(Unity-Editor---Custom-Build---Latest-Released-Build)#connecting-a-custom-build-to-the-scene
  5. Once you enter the scene confirm that:
  • The blue plane in the center of the screen always faces the Player Camera
  • After you click the cube on the ground, a Virtual Camera is activated on the Flying cube in the sky, and it constantly looks at the blue plane in the center of the scene
  • The blue plane at the center of the scene always faces the Virtual camera

@pravusjif pravusjif self-assigned this Jan 19, 2026
@pravusjif pravusjif added bug Something isn't working sdk labels Jan 19, 2026
@decentraland decentraland deleted a comment from github-actions bot Jan 19, 2026
@pravusjif pravusjif moved this from Todo to In Progress in Explorer Alpha Jan 22, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Feb 17, 2026

badge

Windows and Mac build successful in Unity Cloud! You can find a link to the downloadable artifact below.

Name Link
Commit 54cc241
Logs https://github.com/decentraland/unity-explorer/actions/runs/22384532738
Download Windows https://github.com/decentraland/unity-explorer/suites/58481914257/artifacts/5648831744
Download Windows S3 https://explorer-artifacts.decentraland.org/@dcl/unity-explorer/branch/fix/sdk-billboard-ignoring-vcams/pr-19087-54cc241/Decentraland_windows64.zip
Download Mac https://github.com/decentraland/unity-explorer/suites/58481914257/artifacts/5648798666
Download Mac S3 https://explorer-artifacts.decentraland.org/@dcl/unity-explorer/branch/fix/sdk-billboard-ignoring-vcams/pr-19087-54cc241/Decentraland_macos.zip
Built on 2026-02-25T06:45:24Z

Artifact size check

Target Size (MB / MiB) Cap (MB) Δ MB vs release Δ % vs release Result
windows64 317.8 / 303.1 320 0 -0.06% ✅ OK
macos 406.0 / 387.2 410 -2 -0.49% ✅ OK

Comparing against: v0.126.0-alpha

@pravusjif pravusjif marked this pull request as ready for review February 24, 2026 04:57
@pravusjif pravusjif requested review from a team as code owners February 24, 2026 04:57
@pravusjif pravusjif moved this from In Progress to With QA / Awaiting Review in Explorer Alpha Feb 24, 2026
@pravusjif pravusjif removed the request for review from mikhail-dcl February 24, 2026 05:01
Copy link
Contributor

@fcolarich fcolarich left a comment

Choose a reason for hiding this comment

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

Nice!

Copy link
Contributor

@Ludmilafantaniella Ludmilafantaniella left a comment

Choose a reason for hiding this comment

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

LGTM 👍
Verified on Windows and Mac using the provided test scene.
QA validation performed:

  • Blue plane correctly faces the Player Camera initially
  • After activating the Virtual Camera, billboard updates to use the active camera
  • Blue plane consistently faces the Virtual Camera when it becomes active
  • Blue panel correctly faces camera [C] when active
  • No regressions observed during testing

Status: Approved for merge 🚀

6756-evi.mp4
Image

✅Smoke test performed:

  • ✔️ Backpack and wearables in world
  • ✔️ Emotes in world and in backpack
  • ✔️ Teleport with map/coordinates/Jump In
    • Metadynelabs
    • Art week scenes
    • Genesis City
  • ✔️ Chat and multiplayer
  • ✔️ Profile card
  • ✔️ Camera

@github-project-automation github-project-automation bot moved this from With QA / Awaiting Review to In Progress in Explorer Alpha Feb 25, 2026
@pravusjif pravusjif merged commit c00db12 into dev Feb 25, 2026
10 of 11 checks passed
@pravusjif pravusjif deleted the fix/sdk-billboard-ignoring-vcams branch February 25, 2026 21:17
@github-project-automation github-project-automation bot moved this from In Progress to Done in Explorer Alpha Feb 25, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working sdk

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

3 participants