feat(webgl): slim browser start menu to name + Play#122
Merged
Conversation
In WebGL builds the start menu now shows a focused "enter your name and play" screen: a name field, a primary Play button that joins the preconfigured server, plus Connect-to-a-server (manual fallback), Settings and Credits. Singleplayer/Host/Editors/Quit are hidden (no local server or filesystem in the browser; quitting a tab is meaningless). A name is required so players never join the public realm anonymously; a curated ?auto_join=1&player_name= link stays zero-click. All changes are behind `#if UNITY_WEBGL && !UNITY_EDITOR`; the native menu is byte-for-byte unchanged. Closes #120 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This was referenced Jun 29, 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
Simplifies the WebGL/browser start menu to a focused one-screen flow: a name field + a primary Play button (joins the preconfigured server), with Connect to a server… (manual fallback), Settings and Credits. Singleplayer / Host / Editors / Quit are hidden in the browser.
A name is required so players never join the public, kid-friendly realm anonymously. A curated
?auto_join=1&player_name=…link stays zero-click (unchanged).All changes are behind
#if UNITY_WEBGL && !UNITY_EDITOR— the native menu is byte-for-byte unchanged.Changes
UiMainMenu.cs— WebGL button block guarded; native#elseblock verbatim.data/locales/en.json+de.json—ui.menu.play,ui.menu.connect_manual,ui.webgl.need_name.TODO.md— follow-up notes.Verification
Closes #120
🤖 Generated with Claude Code