summaryrefslogtreecommitdiff
path: root/doc/classes/XRInterface.xml
diff options
context:
space:
mode:
Diffstat (limited to 'doc/classes/XRInterface.xml')
-rw-r--r--doc/classes/XRInterface.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/XRInterface.xml b/doc/classes/XRInterface.xml
index cdada35970..96a6f5decd 100644
--- a/doc/classes/XRInterface.xml
+++ b/doc/classes/XRInterface.xml
@@ -116,9 +116,9 @@
[b]Note:[/b] Not all runtimes support all environment blend modes, so it is important to check this at startup. For example:
[codeblock]
func _ready():
- var xr_interface : XRInterface = XRServer.find_interface("OpenXR")
+ var xr_interface: XRInterface = XRServer.find_interface("OpenXR")
if xr_interface and xr_interface.is_initialized():
- var vp : Viewport = get_viewport()
+ var vp: Viewport = get_viewport()
vp.use_xr = true
var acceptable_modes = [ XRInterface.XR_ENV_BLEND_MODE_OPAQUE, XRInterface.XR_ENV_BLEND_MODE_ADDITIVE ]
var modes = xr_interface.get_supported_environment_blend_modes()