From 409c9ad2354cbade4017b1f2a03b9832a52bf45c Mon Sep 17 00:00:00 2001
From: Yelloween <134299963+Yelloween10@users.noreply.github.com>
Date: Mon, 20 Jan 2025 03:29:36 +0300
Subject: [PATCH] Update SubViewport documentations to include a note about
input behaviour
---
doc/classes/SubViewport.xml | 1 +
1 file changed, 1 insertion(+)
diff --git a/doc/classes/SubViewport.xml b/doc/classes/SubViewport.xml
index 605cf949c10..9d41a5e36d6 100644
--- a/doc/classes/SubViewport.xml
+++ b/doc/classes/SubViewport.xml
@@ -6,6 +6,7 @@
[SubViewport] Isolates a rectangular region of a scene to be displayed independently. This can be used, for example, to display UI in 3D space.
[b]Note:[/b] [SubViewport] is a [Viewport] that isn't a [Window], i.e. it doesn't draw anything by itself. To display anything, [SubViewport] must have a non-zero size and be either put inside a [SubViewportContainer] or assigned to a [ViewportTexture].
+ [b]Note:[/b] [InputEvent]s are not passed to a standalone [SubViewport] by default. To ensure [InputEvent] propagation, a [SubViewport] can be placed inside of a [SubViewportContainer].
$DOCS_URL/tutorials/rendering/viewports.html