GodotVR / godot-xr-tools

Support scenes for AR and VR in Godot
MIT License
525 stars 75 forks source link

Add end_xr support #658

Closed Malcolmnixon closed 4 months ago

Malcolmnixon commented 4 months ago

This PR adds the end_xr() method to StartXR. This can be called directly, or can be triggered using a quit request routed through staging. The example wrist control-pad now includes a Quit button which triggers this staging-quit.

Note: Also added the is_xr_active() static method.

Note: As of Godot 4.3-beta3 this triggers a stack-overflow in WebXR, but the overflow seems to occur even when using the web-browser quit button.