godot4.3
state.set_empty_animation(0, 0)
state.add_animation("animaName", 0, false, 0)
如何获取animaName是否已结束
godot4.3
state.set_empty_animation(0, 0)
state.add_animation("animaName", 0, false, 0)
如何获取animaName是否已结束
You could use the animation_completed
signal:
https://esotericsoftware.com/spine-godot#Signals
Alternatively, you can use get_current and call is_complete. See the docs for it here:
https://esotericsoftware.com/spine-api-reference#TrackEntry-isComplete