From 2a7257aedfef4d2b9b1154ec40b077bfd8d59f58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=A3=8E=E9=9D=92=E5=B1=B1?= Date: Fri, 8 Mar 2024 20:06:35 +0800 Subject: [PATCH] Reduce indentation in `XRInterface` class document example code --- doc/classes/XRInterface.xml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/doc/classes/XRInterface.xml b/doc/classes/XRInterface.xml index 631bceec49d..175caca598a 100644 --- a/doc/classes/XRInterface.xml +++ b/doc/classes/XRInterface.xml @@ -122,17 +122,17 @@ [param mode] is the environment blend mode starting with the next frame. [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") - if xr_interface and xr_interface.is_initialized(): - 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() - for mode in acceptable_modes: - if mode in modes: - xr_interface.set_environment_blend_mode(mode) - break + func _ready(): + var xr_interface: XRInterface = XRServer.find_interface("OpenXR") + if xr_interface and xr_interface.is_initialized(): + 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() + for mode in acceptable_modes: + if mode in modes: + xr_interface.set_environment_blend_mode(mode) + break [/codeblock]