mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09: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:
parent
b3bcb2dc14
commit
a2bfb7cff2
9 changed files with 266 additions and 3 deletions
|
|
@ -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()
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue