:github_url: hide .. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the SceneTreeTimer.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_SceneTreeTimer: SceneTreeTimer ============== **Inherits:** :ref:`Reference` **<** :ref:`Object` **Category:** Core Brief Description ----------------- One-shot timer. Properties ---------- +---------------------------+-----------------------------------------------------------+ | :ref:`float` | :ref:`time_left` | +---------------------------+-----------------------------------------------------------+ Signals ------- .. _class_SceneTreeTimer_signal_timeout: - **timeout** **(** **)** Emitted when the timer reaches 0. Description ----------- A one-shot timer managed by the scene tree, which emits :ref:`timeout` on completion. See also :ref:`SceneTree.create_timer`. As opposed to :ref:`Timer`, it does not require the instantiation of a node. Commonly used to create a one-shot delay timer as in the following example: :: func some_function(): print("start") yield(get_tree().create_timer(1.0), "timeout") print("end") Property Descriptions --------------------- .. _class_SceneTreeTimer_property_time_left: - :ref:`float` **time_left** +----------+----------------------+ | *Setter* | set_time_left(value) | +----------+----------------------+ | *Getter* | get_time_left() | +----------+----------------------+ The time remaining.