Skip to content

Commit

Permalink
Doc: Clarify when LimboState::_exit is called
Browse files Browse the repository at this point in the history
  • Loading branch information
limbonaut committed Nov 5, 2024
1 parent a14cc4c commit ae61d55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/source/classes/class_limbostate.rst
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ Called when the state is entered.

|void| **_exit**\ (\ ) |virtual| :ref:`🔗<class_LimboState_private_method__exit>`

Called when the state is exited.
Called when the state is exited. This happens on a transition to another state, and when the state machine is removed from the scene tree (e.g., when the node is freed with :ref:`Node.queue_free<class_Node_method_queue_free>` or the scene changes). Due to implementation details, :ref:`_exit<class_LimboState_private_method__exit>` will not be called on :ref:`Object.free<class_Object_method_free>`!

.. rst-class:: classref-item-separator

Expand Down
2 changes: 1 addition & 1 deletion doc_classes/LimboState.xml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<method name="_exit" qualifiers="virtual">
<return type="void" />
<description>
Called when the state is exited.
Called when the state is exited. This happens on a transition to another state, and when the state machine is removed from the scene tree (e.g., when the node is freed with [method Node.queue_free] or the scene changes). Due to implementation details, [method _exit] will not be called on [method Object.free]!
</description>
</method>
<method name="_setup" qualifiers="virtual">
Expand Down

0 comments on commit ae61d55

Please sign in to comment.