1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Update SubViewport documentations to include a note about input behaviour

This commit is contained in:
Yelloween
2025-01-20 03:29:36 +03:00
parent 7b1ed520bd
commit 409c9ad235

View File

@@ -6,6 +6,7 @@
<description> <description>
[SubViewport] Isolates a rectangular region of a scene to be displayed independently. This can be used, for example, to display UI in 3D space. [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] [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].
</description> </description>
<tutorials> <tutorials>
<link title="Using Viewports">$DOCS_URL/tutorials/rendering/viewports.html</link> <link title="Using Viewports">$DOCS_URL/tutorials/rendering/viewports.html</link>