Skip to content

Commit

Permalink
Add a note about create_tween() method of SceneTree class
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
3 people committed Aug 31, 2023
1 parent 541674d commit 5030549
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions doc/classes/SceneTree.xml
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@
<return type="Tween" />
<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]).
[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>
</method>
<method name="get_first_node_in_group">
Expand Down

0 comments on commit 5030549

Please sign in to comment.