Add a note about create_tween() method of SceneTree class

Add note regarding SceneTree.create_tween() method behavior.

Co-authored-by: A Thousand Ships <96648715+AThousandShips@users.noreply.github.com>
Co-authored-by: Tomek <kobewi4e@gmail.com>
This commit is contained in:
Mateus Elias
2023-08-31 17:50:12 -03:00
parent 541674d106
commit 5030549c7b

View File

@ -90,6 +90,7 @@
<return type="Tween" /> <return type="Tween" />
<description> <description>
Creates and returns a new [Tween]. The Tween will start automatically on the next process frame or physics frame (depending on [enum Tween.TweenProcessMode]). Creates and returns a new [Tween]. The Tween will start automatically on the next process frame or physics frame (depending on [enum Tween.TweenProcessMode]).
[b]Note:[/b] When creating a [Tween] using this method, the [Tween] will not be tied to the [Node] that called it. It will continue to animate even if the [Node] is freed, but it will automatically finish if there's nothing left to animate. If you want the [Tween] to be automatically killed when the [Node] is freed, use [method Node.create_tween] or [method Tween.bind_node].
</description> </description>
</method> </method>
<method name="get_first_node_in_group"> <method name="get_first_node_in_group">