You've already forked godot
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:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user