2
0
Эх сурвалжийг харах

Clarify that create_timer does not require cleanup.

This is how I would expect it to work, but the docs didn't clarify, so I
had to check the source just to make sure I wasn't responsible for
freeing the timer:

https://github.com/godotengine/godot/blob/d39f6386ce3a7916dbb94fef5ff65e7599e060f0/scene/main/scene_tree.cpp#L473
Ryan Roden-Corrent 4 жил өмнө
parent
commit
6e7e4f82ec

+ 1 - 0
doc/classes/SceneTree.xml

@@ -75,6 +75,7 @@
 				    yield(get_tree().create_timer(1.0), "timeout")
 				    print("end")
 				[/codeblock]
+				The timer will be automatically freed after its time elapses.
 			</description>
 		</method>
 		<method name="get_frame" qualifiers="const">