You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Support mono devices in WebXR
This commit is contained in:
@@ -394,6 +394,15 @@ const GodotWebXR = {
|
||||
GodotWebXR.pauseResumeMainLoop();
|
||||
},
|
||||
|
||||
godot_webxr_get_view_count__proxy: 'sync',
|
||||
godot_webxr_get_view_count__sig: 'i',
|
||||
godot_webxr_get_view_count: function () {
|
||||
if (!GodotWebXR.session || !GodotWebXR.pose) {
|
||||
return 0;
|
||||
}
|
||||
return GodotWebXR.pose.views.length;
|
||||
},
|
||||
|
||||
godot_webxr_get_render_targetsize__proxy: 'sync',
|
||||
godot_webxr_get_render_targetsize__sig: 'i',
|
||||
godot_webxr_get_render_targetsize: function () {
|
||||
|
||||
Reference in New Issue
Block a user