1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Add a get_system_info method to XRInterface

This commit is contained in:
Bastiaan Olij
2023-03-13 12:26:10 +11:00
parent 550a779851
commit e31c2e4277
14 changed files with 69 additions and 1 deletions

View File

@@ -583,6 +583,17 @@ void OpenXRInterface::uninitialize() {
initialized = false;
}
Dictionary OpenXRInterface::get_system_info() {
Dictionary dict;
if (openxr_api) {
dict[SNAME("XRRuntimeName")] = openxr_api->get_runtime_name();
dict[SNAME("XRRuntimeVersion")] = openxr_api->get_runtime_version();
}
return dict;
}
bool OpenXRInterface::supports_play_area_mode(XRInterface::PlayAreaMode p_mode) {
return false;
}