From 5030549c7b7095a2bedef75893edbdf546fc1108 Mon Sep 17 00:00:00 2001 From: Mateus Elias Date: Thu, 31 Aug 2023 17:50:12 -0300 Subject: [PATCH] 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 --- doc/classes/SceneTree.xml | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/classes/SceneTree.xml b/doc/classes/SceneTree.xml index fcc5925f8d55..5086b68f24ed 100644 --- a/doc/classes/SceneTree.xml +++ b/doc/classes/SceneTree.xml @@ -90,6 +90,7 @@ 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].