[Question] Android XR Direct Preview support for Windows Standalone Unity apps and runtime Desktop-to-XR switching

Aperta
#29 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
18/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
csharp, unity
Ambito
ar-vr-xr

Direzione di ricerca

This is a support question, not a code task, and the payload names no files or tests. Read the linked Direct Preview documentation to see which of the four questions it already answers, such as Windows Standalone support, runtime XR session switching, and production use. Done means the maintainers reply to each question or point to the docs that cover it.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

Hello Android XR team,

I am developing a Unity-based Windows desktop application with optional XR functionality and am evaluating Samsung Galaxy XR as a supported XR device.

My goal is to run the application entirely on a Windows PC, including CPU/GPU processing and rendering, while using Galaxy XR as an XR display and input device.

I have reviewed the official Android XR Direct Preview documentation, but would like to clarify whether it supports my intended workflow.

1. Current reference: Meta Quest Link workflow

I currently use Meta Quest 3 with Meta Quest Link to run PC-hosted Unity XR applications.

My typical workflow is:

  1. Launch the Meta Quest Link application on my Windows PC.

  2. Connect Meta Quest 3 to the PC using USB-C or Wi-Fi.

  3. Open Quest Link on the headset and establish the PC VR connection.

  4. Start my Unity application using either:

    • Unity Editor Play Mode
    • A compiled Windows Standalone executable (.exe)
  5. Use the application in an immersive 3D XR environment on the headset.

In this setup, my Unity application runs on Windows, while the PC handles rendering and computation. The headset receives the rendered XR frames and sends tracking/input data back to the PC.

I would like to achieve a similar experience with Galaxy XR through an officially supported Android XR solution.

2. Desired workflow: Desktop-to-XR switching

In addition to the workflow above, I want to support switching between desktop and XR modes within the same running Windows application.

My intended workflow is:

  1. Launch my Windows application (.exe) in standard desktop mode.
  2. Work normally using a monitor, mouse, and keyboard.
  3. Connect Galaxy XR to my Windows PC, preferably via USB-C.
  4. Put on the headset and establish the XR connection.
  5. Click a "Switch to XR" button within the running Windows application.
  6. Enter immersive XR mode on Galaxy XR, with the XR scene rendered by the PC GPU.
  7. Continue interacting with the same application and 3D scene using headset tracking and hand/controller input.
  8. Switch back to desktop mode without restarting the application or losing its current state.

Key requirements:

  • A single Windows application (.exe)
  • No separate Android APK required for the main application
  • CPU/GPU processing and XR rendering remain on the Windows PC
  • Runtime switching between desktop and XR modes
  • Preservation of application state and 3D scene data during mode switching
  • Support for headset pose tracking and hand/controller input
  • Preferably USB-C wired connectivity

I would like to avoid maintaining a separate Android application and synchronizing application state between two independent processes.

3. Questions about Android XR Direct Preview

Reference documentation:
https://developer.android.com/develop/xr/unity/direct-preview

Q1. Windows Standalone application support
Does Android XR Direct Preview support compiled Unity Windows Standalone applications (.exe), or is it limited to Unity Editor Play Mode?
If Windows Standalone applications are not supported, is this a deliberate technical limitation or a feature that has not yet been implemented?

Q2. Runtime desktop-to-XR switching
Does Direct Preview support dynamically initializing and shutting down an XR session within an already running Windows Unity application?
For example, can my application start in desktop mode, switch into XR mode after connecting Galaxy XR, and return to desktop mode while preserving the same application process and state?

Q3. Production usage
Is Direct Preview intended exclusively for development and debugging, or is it officially supported for production and commercial Windows applications?

Q4. Official PC XR connectivity
Does Google offer another officially supported solution for connecting Galaxy XR to a Windows PC as an XR display/input device, similar to Meta Quest Link?

I am particularly interested in solutions supporting:

  • Windows-hosted OpenXR applications
  • PC GPU rendering
  • USB-C wired connectivity
  • HMD and hand tracking
  • Unity Editor and Windows Standalone applications
  • Dynamic switching between desktop and XR modes

I would greatly appreciate any clarification regarding current support, technical limitations, recommended integration methods, or future plans.

Thank you for your time and support.

Lingua principale
C#
Stelle
95
Fork
14
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di android/android-xr-unity-package

Tutte le issue di android/android-xr-unity-package

Issue simili

Altre issue su C#

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.