Skip to content

Add immersive-safe 3D device auth prompt for headless Google login - #166

Draft
mwfarb with Copilot wants to merge 5 commits into
mainfrom
copilot/need-unity-xr-headless-prompt
Draft

Add immersive-safe 3D device auth prompt for headless Google login#166
mwfarb with Copilot wants to merge 5 commits into
mainfrom
copilot/need-unity-xr-headless-prompt

Conversation

Copilot AI commented Jul 18, 2026

Copy link
Copy Markdown

Headless Google device auth relied on OnGUI, which is not visible in immersive/XR flows without a 2D layer. This change adds an in-world prompt so users in immersive mode can still read the verification URL and device code.

  • Problem addressed

    • Preserve headless device-auth usability when immersive mode cannot render the existing 2D dialog.
  • Runtime auth UX updates (ArenaMqttClient)

    • Added a world-space TextMeshPro prompt that is shown only while showDeviceAuthWindow is active.
    • Prompt content mirrors device-auth instructions (verification URL + user code).
    • Prompt is camera-relative (kept in front of the user) so it remains readable in XR/immersive contexts.
  • Lifecycle + safety

    • Added explicit prompt teardown when auth prompt state ends and on object destroy.
    • Added defensive cleanup if prompt component creation fails.
if (showDeviceAuthWindow)
{
    UpdateDeviceAuthPrompt3D(); // shows URL + code in world space
}
else if (deviceAuthPrompt3D != null)
{
    DestroyDeviceAuthPrompt3D();
}

Copilot AI linked an issue Jul 18, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add 2D layer for immersive mode dialog Add immersive-safe 3D device auth prompt for headless Google login Jul 18, 2026
Copilot AI requested a review from mwfarb July 18, 2026 16:31
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.

need unity xr headless prompt

2 participants