summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzacryol <60046681+zacryol@users.noreply.github.com>2021-11-22 13:21:12 -0700
committerzacryol <60046681+zacryol@users.noreply.github.com>2021-11-27 13:49:03 -0700
commit81c1d5197e40415c20520b1ae90560b7cad2210e (patch)
treea5599d5fcb2ee81ca6472d80980c1bca71811e00
parentdbef4bbd98b655d6f89601c9e44c679b373b3628 (diff)
Fix description of Viewport `find_world_2d()` method.
The doc now states that the method searches for a World2D among ancestor Viewports as well, differentiating it from the get_world_2d() getter. and also find_world_3d()
-rw-r--r--doc/classes/Viewport.xml4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/classes/Viewport.xml b/doc/classes/Viewport.xml
index d83645a8af..50b45ca0ed 100644
--- a/doc/classes/Viewport.xml
+++ b/doc/classes/Viewport.xml
@@ -25,13 +25,13 @@
<method name="find_world_2d" qualifiers="const">
<return type="World2D" />
<description>
- Returns the 2D world of the viewport.
+ Returns the first valid [World2D] for this viewport, searching the [member world_2d] property of itself and any Viewport ancestor.
</description>
</method>
<method name="find_world_3d" qualifiers="const">
<return type="World3D" />
<description>
- Returns the 3D world of the viewport, or if none the world of the parent viewport.
+ Returns the first valid [World3D] for this viewport, searching the [member world_3d] property of itself and any Viewport ancestor.
</description>
</method>
<method name="get_camera_2d" qualifiers="const">