Skip to content

Module select menu: fix it on the headset, and press MENU twice to go back - #72

Merged
RomeXO10 merged 2 commits into
mainfrom
module-select-headset-fit
Oct 22, 2026
Merged

RomeXO10 merged 2 commits into
mainfrom
module-select-headset-fit

Conversation

@RomeXO10

Copy link
Copy Markdown
Contributor

Two fixes to the module select menu from #71, found on a real Quest 2.

1. The menu was mostly below the floor

On the headset you could only see the top edge of the menu, which also made cards hard to select.

Cause: the menu set its position on its very first frame. On a Quest that comes before the headset reports where your head is, so the game still thought your eyes were at floor level and put the menu there, mostly underground. After that it only re-centred when you turned, never when your height changed.

Fix (ModuleSelectMenu.Place):

  • the menu stays hidden until the headset reports a tracked head, then appears at eye level. If that never happens it appears after 3 s anyway. Without a headset (editor) it appears straight away, as before;
  • if your head height changes by more than 30 cm (tracking starting late, a recenter, sitting down or standing up), the menu jumps back to eye level;
  • the panel is 13% smaller (canvasScale 0.0015 → 0.0013) so it fits more comfortably in view.

2. No obvious way back to the menu

Holding B for 1.5 s worked, but nobody would think to try it.

Fix (ReturnToMenu, XRButtons):

  • Left MENU button (☰): one press shows "Press MENU again to go back to the module menu", and a second press within 3 s goes back. Two presses are needed so a stray press can't throw away a child's progress. No module on main, and nothing on the team's Module 3 branch, reads this button.
  • Hold B: still works as before, with its progress bar.
  • Always visible: the prompt is drawn on top of everything, so a nearby wall can't hide it (Module 1 starts indoors). It sits low enough to clear Module 2's briefing panel.
  • Menu hint: the hint line on the menu now mentions MENU instead of B.
  • In the editor: the M key stands in for the MENU button.

Testing

  • Playtest harness:
    • with the camera held at floor height while the menu appeared, then raised to 1.65 m, the menu moved up to eye level;
    • in Module 1's game, one MENU press showed the prompt in front of a wall and the second press returned to the menu;
    • holding B in Module 2 still returned to the menu.
  • Quest 2: with fix 1 installed, the whole menu showed up at eye level. This build, with both fixes, is installed on the headset and launches without crashes; the MENU button hasn't been tried on it yet.

On a Quest the menu showed only its top edge; the rest was below the floor.
It was placed on its first frame, which comes before the first tracked head
pose, so on the floor-level rig the camera was still at about y = 0 and the
menu went into the ground. It never moved up again: recentring only reacted
to turning, not to height.

- Wait for the headset to report a tracked head before placing it (hidden
  until then; shown anyway after 3 s so it can never stay missing). With no
  headset (editor) it places straight away as before.
- Snap again whenever the head height changes by more than 0.3 m: tracking
  starting late, a recentre, the player sitting down or standing up.
- 13% smaller (canvasScale 0.0015 -> 0.0013), so the whole panel sits more
  comfortably in a Quest 2's view.

Checked with the playtest harness by holding the camera at floor height while
the menu places, then raising it to 1.65 m: the menu re-places at eye level.
On the headset there was no obvious way back to the module menu; holding B for
1.5 s worked but was not something anyone would try.

- The left controller's MENU button now goes back: the first press shows
  "Press MENU again to go back to the module menu", a second press within 3 s
  goes. Twice, so a stray press cannot throw away a child's progress. No module
  on main (or the team's Module 3 branch) reads that button.
- Hold B still works, with its progress bar.
- The prompt draws without a depth test, so a nearby wall (Module 1 starts
  indoors) cannot hide it, and sits a little lower so it clears Module 2's
  briefing panel.
- The menu's hint line now mentions MENU instead of B.

Checked with the playtest harness: in Module 1's game, one MENU press shows the
prompt in front of the wall and the second returns to the menu; hold B from
Module 2 still returns.
@RomeXO10
RomeXO10 merged commit 412a81c into main Oct 22, 2026
1 check passed
@RomeXO10
RomeXO10 deleted the module-select-headset-fit branch October 22, 2026 03:19
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.

1 participant