1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Enable XR Preview Mode for PICO OS

Supported features in the immersive preview mode
- Passthrough
- Hand tracking
Notes:
- Multi-window is only available for internal apps on PICO OS, therefore launching adjacent windows is not possible currently.
- Passthrough splash screen is not supported on PICO OS
This commit is contained in:
ygz-bd
2024-10-23 14:49:34 +01:00
committed by Yagiz Hatay
parent b3bcb2dc14
commit a2bfb7cff2
9 changed files with 266 additions and 3 deletions

View File

@@ -44,9 +44,16 @@ fun isHorizonOSDevice(): Boolean {
return "Oculus".equals(Build.BRAND, true)
}
/**
* Returns true if running on PICO OS.
*/
fun isPicoOSDevice(): Boolean {
return ("Pico".equals(Build.BRAND, true))
}
/**
* Returns true if running on a native Android XR device.
*/
fun isNativeXRDevice(): Boolean {
return isHorizonOSDevice()
return isHorizonOSDevice() || isPicoOSDevice()
}