diff options
author | ne0fhyk <fhuyakou@gmail.com> | 2021-08-27 10:36:29 -0700 |
---|---|---|
committer | ne0fhyk <fhuyakou@gmail.com> | 2021-08-27 11:12:25 -0700 |
commit | 9f4aa1f5adac2b152e91abe2a175319f3d4403bf (patch) | |
tree | 69b73ec35b938de56d5b37a6ae8d8d67a73a1a4e /platform/android/export/export_plugin.cpp | |
parent | 90a35dac489bcbe39de35af661367519b411cb98 (diff) | |
download | redot-engine-9f4aa1f5adac2b152e91abe2a175319f3d4403bf.tar.gz |
Update the AndroidManifest to enable access to Oculus OpenXR runtime.
Diffstat (limited to 'platform/android/export/export_plugin.cpp')
-rw-r--r-- | platform/android/export/export_plugin.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/platform/android/export/export_plugin.cpp b/platform/android/export/export_plugin.cpp index bdf12b6c50..b220b64df1 100644 --- a/platform/android/export/export_plugin.cpp +++ b/platform/android/export/export_plugin.cpp @@ -977,6 +977,11 @@ void EditorExportPlatformAndroid::_fix_manifest(const Ref<EditorExportPreset> &p Vector<int> feature_versions; if (xr_mode_index == 1 /* XRMode.OVR */) { + // Set degrees of freedom + feature_names.push_back("android.hardware.vr.headtracking"); + feature_required_list.push_back(true); + feature_versions.push_back(1); + // Check for hand tracking int hand_tracking_index = p_preset->get("xr_features/hand_tracking"); // 0: none, 1: optional, 2: required if (hand_tracking_index > 0) { |