Skip to content

Create simulator settings panel. - #271

Merged
dli7319 merged 1 commit into
google:mainfrom
dli7319:simulator
May 11, 2026
Merged

Create simulator settings panel.#271
dli7319 merged 1 commit into
google:mainfrom
dli7319:simulator

Conversation

@dli7319

@dli7319 dli7319 commented May 11, 2026

Copy link
Copy Markdown
Collaborator

This is a breaking change which deletes the simulator mode indicator. Instead, now the simulator interaction mode is controlled via the settings panel. Currently, there is still only one living room environment.

  1. Added Simulator Settings Panel (SimulatorSettingsPanel.ts): Implemented a Lit component (<xrblocks-simulator-settings>) that shows a settings button at the bottom left of the page and opens a glassmorphic panel with dropdowns for AR Simulation Environment and Interaction Mode.
  2. Refactored Simulator Configuration (SimulatorOptions.ts): Replaced legacy single-path properties (scenePath, scenePlanesPath, videoPath) with an extensible environments: SimulatorEnvironment[] list supporting multiple simulation environments.
  3. Dynamic Environment Switching (SimulatorScene.ts, SimulatorWorld.ts): Updated core components to read from the active environment configuration and added runtime scene reloading capabilities (setEnvironment).
  4. Deleted Legacy Mode Indicator (ModeIndicator.ts): Completely removed the old mode indicator component and its associated configuration options.
image

@dli7319
dli7319 requested review from nsalminen and ruofeidu May 11, 2026 18:23
@ruofeidu

Copy link
Copy Markdown
Collaborator

Great features to add on!

Would you move the down arrows a bit left?

I started a thread to discuss in depth internally.

This is a breaking change which deletes the simulator mode indicator.
Instead, now the simulator interaction mode is controlled via the settings panel.
Currently, there is still only one living room environment.

1. Added Simulator Settings Panel (SimulatorSettingsPanel.ts): Implemented a Lit component (<xrblocks-simulator-settings>) that shows a settings button at the bottom left of the page and opens a glassmorphic panel with dropdowns for AR Simulation Environment and Interaction Mode.
2. Refactored Simulator Configuration (SimulatorOptions.ts): Replaced legacy single-path properties (scenePath, scenePlanesPath, videoPath) with an extensible environments: SimulatorEnvironment[] list supporting multiple simulation environments.
3. Dynamic Environment Switching (SimulatorScene.ts, SimulatorWorld.ts): Updated core components to read from the active environment configuration and added runtime scene reloading capabilities (setEnvironment).
4. Deleted Legacy Mode Indicator (ModeIndicator.ts): Completely removed the old mode indicator component and its associated configuration options.
@dli7319

dli7319 commented May 11, 2026

Copy link
Copy Markdown
Collaborator Author
image

@dli7319
dli7319 merged commit 6d774d8 into google:main May 11, 2026
4 checks passed
@dli7319
dli7319 deleted the simulator branch May 11, 2026 18:59
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.

2 participants