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

@@ -301,6 +301,16 @@ void WebXRInterfaceJS::uninitialize() {
};
};
Dictionary WebXRInterfaceJS::get_system_info() {
Dictionary dict;
// TODO get actual information from WebXR to return here
dict[SNAME("XRRuntimeName")] = String("WebXR");
dict[SNAME("XRRuntimeVersion")] = String("");
return dict;
}
Transform3D WebXRInterfaceJS::_js_matrix_to_transform(float *p_js_matrix) {
Transform3D transform;