2021-12-14 01:44:12 +00:00
<?xml version="1.0" encoding="UTF-8" ?>
2023-03-01 00:44:37 +00:00
<class name= "OpenXRInterface" inherits= "XRInterface" version= "4.1" xmlns:xsi= "http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation= "../../../doc/class.xsd" >
2021-12-14 01:44:12 +00:00
<brief_description >
Our OpenXR interface.
</brief_description>
<description >
The OpenXR interface allows Godot to interact with OpenXR runtimes and make it possible to create XR experiences and games.
2022-11-01 14:29:38 +00:00
Due to the needs of OpenXR this interface works slightly different than other plugin based XR interfaces. It needs to be initialized when Godot starts. You need to enable OpenXR, settings for this can be found in your games project settings under the XR heading. You do need to mark a viewport for use with XR in order for Godot to know which render result should be output to the headset.
2021-12-14 01:44:12 +00:00
</description>
<tutorials >
2022-07-22 12:05:31 +00:00
<link title= "Setting up XR" > $DOCS_URL/tutorials/xr/setting_up_xr.html</link>
2021-12-14 01:44:12 +00:00
</tutorials>
2022-10-10 07:51:53 +00:00
<methods >
2023-01-30 23:20:19 +00:00
<method name= "get_action_sets" qualifiers= "const" >
<return type= "Array" />
<description >
Returns a list of action sets registered with Godot (loaded from the action map at runtime).
</description>
</method>
2022-10-10 07:51:53 +00:00
<method name= "get_available_display_refresh_rates" qualifiers= "const" >
<return type= "Array" />
<description >
Returns display refresh rates supported by the current HMD. Only returned if this feature is supported by the OpenXR runtime and after the interface has been initialized.
</description>
</method>
2023-01-30 23:20:19 +00:00
<method name= "is_action_set_active" qualifiers= "const" >
<return type= "bool" />
<param index= "0" name= "name" type= "String" />
<description >
Returns [code]true[/code] if the given action set is active.
</description>
</method>
<method name= "set_action_set_active" >
<return type= "void" />
<param index= "0" name= "name" type= "String" />
<param index= "1" name= "active" type= "bool" />
<description >
Sets the given action set as active or inactive.
</description>
</method>
2022-10-10 07:51:53 +00:00
</methods>
<members >
<member name= "display_refresh_rate" type= "float" setter= "set_display_refresh_rate" getter= "get_display_refresh_rate" default= "0.0" >
The display refresh rate for the current HMD. Only functional if this feature is supported by the OpenXR runtime and after the interface has been initialized.
</member>
2023-02-18 15:50:55 +00:00
<member name= "render_target_size_multiplier" type= "float" setter= "set_render_target_size_multiplier" getter= "get_render_target_size_multiplier" default= "1.0" >
The render size multiplier for the current HMD. Must be set before the interface has been initialized.
</member>
2022-10-10 07:51:53 +00:00
</members>
2022-03-05 10:09:21 +00:00
<signals >
<signal name= "pose_recentered" >
<description >
Informs the user queued a recenter of the player position.
</description>
</signal>
<signal name= "session_begun" >
<description >
Informs our OpenXR session has been started.
</description>
</signal>
<signal name= "session_focussed" >
<description >
Informs our OpenXR session now has focus.
</description>
</signal>
<signal name= "session_stopping" >
<description >
Informs our OpenXR session is stopping.
</description>
</signal>
<signal name= "session_visible" >
<description >
Informs our OpenXR session is now visible (output is being sent to the HMD).
</description>
</signal>
</signals>
2021-12-14 01:44:12 +00:00
</class>