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:
d39f6386ce/scene/main/scene_tree.cpp (L473)
This commit is contained in:
parent
d39f6386ce
commit
6e7e4f82ec
1 changed files with 1 additions and 0 deletions
|
@ -75,6 +75,7 @@
|
||||||
yield(get_tree().create_timer(1.0), "timeout")
|
yield(get_tree().create_timer(1.0), "timeout")
|
||||||
print("end")
|
print("end")
|
||||||
[/codeblock]
|
[/codeblock]
|
||||||
|
The timer will be automatically freed after its time elapses.
|
||||||
</description>
|
</description>
|
||||||
</method>
|
</method>
|
||||||
<method name="get_frame" qualifiers="const">
|
<method name="get_frame" qualifiers="const">
|
||||||
|
|
Loading…
Reference in a new issue