This project is designed to help developers quickly set up and start building immersive AR/VR applications for the Samsung Galaxy XR headset. The Galaxy XR is powered by Qualcomm Snapdragon® XR2+ Gen 2 chipset, delivering high-performance graphics, AI-driven spatial computing, and low latency connectivity critical for smooth XR interactions. With native OpenXR support and an Android based architecture, developers can leverage Unity’s XR Plugin Management and Snapdragon Spaces tools to create advanced spatial experiences. This guide will walk you through enabling Developer Mode, configuring Unity for Android XR, and deploying your first XR application on Galaxy XR, ensuring a streamlined onboarding process for XR development.
Objective
This guide will walk you through setting up your Samsung Galaxy XR headset for Unity-based development. You’ll learn how to enable Developer Mode, configure Unity with Android XR support, and deploy your first XR app. We’ll also cover system requirements, installation steps, and useful resources to help you get started quickly.
Equipment Required Parts List / Tools
|
Samsung Galaxy XR |
https://www.samsung.com/us/xr/galaxy-xr/galaxy-xr/ |
Additional Resources
|
Unity OpenXR for Android |
|
|
Android XR Unity Samples |
|
| Snapdragon Spaces Configuration Tool | Snapdragon Spaces Compatibility Plugin for Android XR |
| Samsung XR Developer Portal | Develop with Unity for Android XR | Android XR for Unity | Android Developers |
Step 1. Enable Developer Mode on Samsung Galaxy XR
A. Activate Developer Mode:
- On your headset, navigate to: Apps → Settings → About Headset → Software Information
- Tap Build Number 7 times until Developer Mode is enabled.
B. Enable Key Developer Options:
- Go to General Management → Developer Options
- Turn on:
- OEM Unlocking
- USB Debugging
Step 2 – Check System Requirements
Before installing Unity and SDKs, ensure your development machine meets these requirements:
Windows
- OS: Windows 10 version 21H1 (build 19043) or newer
- CPU: X64 architecture with SSE2 support or ARM64
- Graphics: DX10, DX11, DX12, or Vulkan-capable GPU
macOS
- OS: Big Sur 11 or newer
- CPU: Intel (SSE2) or Apple Silicon (M1+)
- Graphics: Metal-capable Intel/AMD GPUs
Step 3 – Install Unity and Required Tools
a. Download Unity Hub
Windows, Mac Intel, Mac ARM64, or Linux.
b. Install Unity 6.1+ (LTS recommended)
Include Android Build Support with SDK, NDK, and OpenJDK.
c. Install Git for sample projects: Git for your OS type
Git - Install
GitHub - android/xr-unity-samples-
Step 4 – Set Up Your Unity Project
A. Create a New Project
- In Unity Hub, select Core 3D (Built-In Render Pipeline) for XR compatability.
- Switch to Android Platform
- Go to File → Build Settings → Android → Switch Platform.
- Add XR Packages
- Install OpenXR via XR Plugin Management
- Add XR Interaction Toolkit from Package Manager and import samples.
Step 5 – Build and Deploy to Samsung Galaxy XRA. Activate Developer Mode:
a. Connect your headset via USB.
b. In Build Settings, select Android and set:
- Minimum API Level: Android 34+
- Add your XR scene to the build list.
c. Click Build, then install the APK using: adb install "path_to_apk_file"
d. Pick the location for APK file to be saved
e. After open the, Ensure you have the necessary ADB tools installed on your computer.
f. Connect your Android device to your computer via USB or Wi-Fi.
g. Open the command prompt and navigate to the directory containing the APK file.
h. Use the command adb install "path_to_apk_file" to install the APK on your device.
Step 6 – Tips and Troubleshooting
- If Unity doesn’t detect Android components, follow Unity Android Setup Guide.
- Ensure ADB tools are installed for deployment.
- For performance optimization, refer to Android XR Performance Guide.
Step 7 – Advanced Setup & Optimization
a. Install URP (Universal Render Pipeline) for better graphics:
- In Unity, go to Window → Package Manager → Unity Registry → Universal RP → Install.
- Create a URP Asset under Assets → Create → Rendering → URP Asset (with Universal Renderer).
b. Performance Tuning:
- Use Snapdragon Spaces Configuration Tool for automated setup.
- Optimize frame rates (target 70 FPS) using OpenXR feature settings.
c. Troubleshooting Missing Components:
- Check Permission Groups and XR settings in Unity.
