CallbackTweener.xml 1.1 KB

12345678910111213141516171819202122232425262728
  1. <?xml version="1.0" encoding="UTF-8" ?>
  2. <class name="CallbackTweener" inherits="Tweener" 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 SceneTreeTween.tween_callback] for more usage information.
  8. [b]Note:[/b] [method SceneTreeTween.tween_callback] is the only correct way to create [CallbackTweener]. Any [CallbackTweener] created manually will not function correctly.
  9. </description>
  10. <tutorials>
  11. </tutorials>
  12. <methods>
  13. <method name="set_delay">
  14. <return type="CallbackTweener" />
  15. <argument index="0" name="delay" type="float" />
  16. <description>
  17. Makes the callback call delayed by given time in seconds. Example:
  18. [codeblock]
  19. var tween = get_tree().create_tween()
  20. tween.tween_callback(queue_free).set_delay(2) #this will call queue_free() after 2 seconds
  21. [/codeblock]
  22. </description>
  23. </method>
  24. </methods>
  25. <constants>
  26. </constants>
  27. </class>