对于 Godot 4,设置动画循环模式使用Animation.loop_mode
https://docs.godotengine.org/en/stable/classes/class_animation.html#enum-animation-loopmode
var anim : Animation= $AnimationPlayer.get_animation(anim_name)
anim.loop_mode =(Animation.LOOP_LINEAR)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
4467 次 |
| 最近记录: |