Skip to content
0.2.0-dev Download ZIP
27 lines ·1.2 KB Raw
1<?xml version="1.0" encoding="UTF-8" ?>
2<class name="CallbackTweener" inherits="Tweener" api_type="core" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd">
3 <brief_description>
4 Calls the specified method after optional delay.
5 </brief_description>
6 <description>
7 [CallbackTweener] is used to call a method in a tweening sequence. See [method Tween.tween_callback] for more usage information.
8 The tweener will finish automatically if the callback's target object is freed.
9 [b]Note:[/b] [method Tween.tween_callback] is the only correct way to create [CallbackTweener]. Any [CallbackTweener] created manually will not function correctly.
10 </description>
11 <tutorials>
12 </tutorials>
13 <methods>
14 <method name="set_delay">
15 <return type="CallbackTweener" />
16 <param index="0" name="delay" type="float" />
17 <description>
18 Makes the callback call delayed by given time in seconds.
19 [b]Example:[/b] Call [method Node.queue_free] after 2 seconds:
20 [codeblock]
21 var tween = get_tree().create_tween()
22 tween.tween_callback(queue_free).set_delay(2)
23 [/codeblock]
24 </description>
25 </method>
26 </methods>
27</class>