Add node started/finished signals for animation state machines

This commit is contained in:
Adam Johnston
2025-02-03 02:37:34 -08:00
parent 5dd76968d8
commit d72006119d
4 changed files with 62 additions and 17 deletions

View File

@ -93,4 +93,19 @@
<members>
<member name="resource_local_to_scene" type="bool" setter="set_local_to_scene" getter="is_local_to_scene" overrides="Resource" default="true" />
</members>
<signals>
<signal name="state_finished">
<param index="0" name="state" type="StringName" />
<description>
Emitted when the [param state] finishes playback. If [param state] is a state machine set to grouped mode, its signals are passed through with its name prefixed.
If there is a crossfade, this will be fired when the influence of the [method get_fading_from_node] animation is no longer present.
</description>
</signal>
<signal name="state_started">
<param index="0" name="state" type="StringName" />
<description>
Emitted when the [param state] starts playback. If [param state] is a state machine set to grouped mode, its signals are passed through with its name prefixed.
</description>
</signal>
</signals>
</class>