1
0
mirror of https://github.com/godotengine/godot.git synced 2026-01-03 19:11:41 +00:00

Fix hybrid app support detection for the Android editor

This commit is contained in:
Fredia Huya-Kouadio
2025-12-30 20:39:18 -08:00
parent 1559ab34c6
commit 185a4abcb5
4 changed files with 6 additions and 8 deletions

View File

@@ -104,8 +104,8 @@ abstract class BaseGodotGame: GodotEditor() {
@CallSuper
override fun supportsFeature(featureTag: String): Boolean {
if (HYBRID_APP_FEATURE == featureTag) {
// Check if hybrid is enabled
return isHybridAppEnabled()
// Check if hybrid is enabled.
return godot?.isXrRuntime == true && isHybridAppEnabled()
}
return super.supportsFeature(featureTag)