You've already forked godot
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:
@@ -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()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user