Add Passthrough extension wrapper

This commit is contained in:
Gabor Koncz 2022-09-26 09:04:12 +02:00
parent 52aae6d4f1
commit 72203a4da4
11 changed files with 585 additions and 4 deletions

View file

@ -69,6 +69,18 @@
Is [code]true[/code] if this interface has been initialised.
</description>
</method>
<method name="is_passthrough_enabled">
<return type="bool" />
<description>
Is [code]true[/code] if passthrough is enabled.
</description>
</method>
<method name="is_passthrough_supported">
<return type="bool" />
<description>
Is [code]true[/code] if this interface supports passthrough.
</description>
</method>
<method name="set_play_area_mode">
<return type="bool" />
<param index="0" name="mode" type="int" enum="XRInterface.PlayAreaMode" />
@ -76,6 +88,19 @@
Sets the active play area mode, will return [code]false[/code] if the mode can't be used with this interface.
</description>
</method>
<method name="start_passthrough">
<return type="bool" />
<description>
Starts passthrough, will return [code]false[/code] if passthrough couldn't be started.
[b]Note:[/b] The viewport used for XR must have a transparent background, otherwise passthrough may not properly render.
</description>
</method>
<method name="stop_passthrough">
<return type="void" />
<description>
Stops passthrough.
</description>
</method>
<method name="supports_play_area_mode">
<return type="bool" />
<param index="0" name="mode" type="int" enum="XRInterface.PlayAreaMode" />