summaryrefslogtreecommitdiff
path: root/doc/classes
diff options
context:
space:
mode:
authorRindbee <idleman@yeah.net>2022-08-14 19:17:45 +0800
committerRĂ©mi Verschelde <rverschelde@gmail.com>2023-05-12 12:31:22 +0200
commitb91b8fce43ab9cb9f8c96f8c640acc801774b6b5 (patch)
tree3c3eb5511ddef46a86c6b5a305264630c47febfa /doc/classes
parent1146172b302a68393e4f97b47e6460d78db75518 (diff)
Improve the UX of ViewportTexture in the editor
The associated `ViewportTexture`s will update the `viewport_path` in time when the `Viewport`'s nodepath is changed (caused by renaming the node names or moving in the SceneTree dock). If the target `Viewport` is changed by resetting the `viewport_path`, the `ViewportTexture`s will be re-setup and emit `changed` signal in time. (cherry picked from commit af58f1e8547c8b6a2e6b83b7de9c3ac9bc05d881)
Diffstat (limited to 'doc/classes')
-rw-r--r--doc/classes/ViewportTexture.xml1
1 files changed, 1 insertions, 0 deletions
diff --git a/doc/classes/ViewportTexture.xml b/doc/classes/ViewportTexture.xml
index 8ecda45bd6..36390863cf 100644
--- a/doc/classes/ViewportTexture.xml
+++ b/doc/classes/ViewportTexture.xml
@@ -17,6 +17,7 @@
<members>
<member name="viewport_path" type="NodePath" setter="set_viewport_path_in_scene" getter="get_viewport_path_in_scene" default="NodePath(&quot;&quot;)">
The path to the [Viewport] node to display. This is relative to the scene root, not to the node which uses the texture.
+ [b]Note:[/b] In the editor, it is automatically updated when the target viewport's node path changes due to renaming or moving the viewport or its ancestors. At runtime, it may not be able to automatically update due to the inability to determine the scene root.
</member>
</members>
</class>