class_openxrinterface.rst 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/make_rst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the OpenXRInterface.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_OpenXRInterface:
  6. OpenXRInterface
  7. ===============
  8. **Inherits:** :ref:`XRInterface<class_XRInterface>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
  9. Our OpenXR interface.
  10. Description
  11. -----------
  12. The OpenXR interface allows Godot to interact with OpenXR runtimes and make it possible to create XR experiences and games.
  13. Due to the needs of OpenXR this interface works slightly different than other plugin based XR interfaces. It needs to be initialised 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.
  14. Tutorials
  15. ---------
  16. - :doc:`Setting up XR <../tutorials/xr/setting_up_xr>`
  17. Signals
  18. -------
  19. .. _class_OpenXRInterface_signal_pose_recentered:
  20. - **pose_recentered** **(** **)**
  21. Informs the user queued a recenter of the player position.
  22. ----
  23. .. _class_OpenXRInterface_signal_session_begun:
  24. - **session_begun** **(** **)**
  25. Informs our OpenXR session has been started.
  26. ----
  27. .. _class_OpenXRInterface_signal_session_focussed:
  28. - **session_focussed** **(** **)**
  29. Informs our OpenXR session now has focus.
  30. ----
  31. .. _class_OpenXRInterface_signal_session_stopping:
  32. - **session_stopping** **(** **)**
  33. Informs our OpenXR session is stopping.
  34. ----
  35. .. _class_OpenXRInterface_signal_session_visible:
  36. - **session_visible** **(** **)**
  37. Informs our OpenXR session is now visible (output is being sent to the HMD).
  38. .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
  39. .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
  40. .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
  41. .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
  42. .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
  43. .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`