Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
XRInterfaceExtension¶
Inherits: XRInterface < RefCounted < Object
Base class for XR interface extensions (plugins).
Description¶
External XR interface plugins should inherit from this class.
Tutorials¶
Methods¶
void |
_end_frame ( ) virtual |
_get_anchor_detection_is_enabled ( ) virtual const |
|
_get_camera_feed_id ( ) virtual const |
|
_get_camera_transform ( ) virtual |
|
_get_capabilities ( ) virtual const |
|
_get_color_texture ( ) virtual |
|
_get_depth_texture ( ) virtual |
|
_get_name ( ) virtual const |
|
_get_play_area ( ) virtual const |
|
_get_play_area_mode ( ) virtual const |
|
_get_projection_for_view ( int view, float aspect, float z_near, float z_far ) virtual |
|
_get_render_target_size ( ) virtual |
|
_get_suggested_pose_names ( StringName tracker_name ) virtual const |
|
_get_suggested_tracker_names ( ) virtual const |
|
_get_system_info ( ) virtual const |
|
_get_tracking_status ( ) virtual const |
|
_get_transform_for_view ( int view, Transform3D cam_transform ) virtual |
|
_get_velocity_texture ( ) virtual |
|
_get_view_count ( ) virtual |
|
_get_vrs_texture ( ) virtual |
|
_initialize ( ) virtual |
|
_is_initialized ( ) virtual const |
|
void |
_post_draw_viewport ( RID render_target, Rect2 screen_rect ) virtual |
_pre_draw_viewport ( RID render_target ) virtual |
|
void |
_pre_render ( ) virtual |
void |
_process ( ) virtual |
void |
_set_anchor_detection_is_enabled ( bool enabled ) virtual |
_set_play_area_mode ( PlayAreaMode mode ) virtual const |
|
_supports_play_area_mode ( PlayAreaMode mode ) virtual const |
|
void |
_trigger_haptic_pulse ( String action_name, StringName tracker_name, float frequency, float amplitude, float duration_sec, float delay_sec ) virtual |
void |
_uninitialize ( ) virtual |
void |
add_blit ( RID render_target, Rect2 src_rect, Rect2i dst_rect, bool use_layer, int layer, bool apply_lens_distortion, Vector2 eye_center, float k1, float k2, float upscale, float aspect_ratio ) |
get_render_target_texture ( RID render_target ) |
|
Method Descriptions¶
void _end_frame ( ) virtual
Called if interface is active and queues have been submitted.
bool _get_anchor_detection_is_enabled ( ) virtual const
Return true
if anchor detection is enabled for this interface.
int _get_camera_feed_id ( ) virtual const
Returns the camera feed ID for the CameraFeed registered with the CameraServer that should be presented as the background on an AR capable device (if applicable).
Transform3D _get_camera_transform ( ) virtual
Returns the Transform3D that positions the XRCamera3D in the world.
int _get_capabilities ( ) virtual const
Returns the capabilities of this interface.
RID _get_color_texture ( ) virtual
Return color texture into which to render (if applicable).
RID _get_depth_texture ( ) virtual
Return depth texture into which to render (if applicable).
StringName _get_name ( ) virtual const
Returns the name of this interface.
PackedVector3Array _get_play_area ( ) virtual const
Returns an PackedVector3Array that denotes the play areas boundaries (if applicable).
PlayAreaMode _get_play_area_mode ( ) virtual const
Returns the PlayAreaMode that sets up our play area.
PackedFloat64Array _get_projection_for_view ( int view, float aspect,