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
@@ -53,6 +53,7 @@ import org.godotengine.godot.error.Error
import org.godotengine.godot.utils.PermissionsUtil
import org.godotengine.godot.utils.ProcessPhoenix
import org.godotengine.godot.utils.isHorizonOSDevice
import org.godotengine.godot.utils.isPicoOSDevice
import org.godotengine.godot.utils.isNativeXRDevice
import java.util.*
import kotlin.math.min
@@ -521,6 +522,10 @@ abstract class BaseGodotEditor : GodotActivity() {
return isHorizonOSDevice()
}
if (featureTag == "picoos") {
return isPicoOSDevice()
}
return false
}
}