Godot Version
v4.2.1.stable.mono.official [b09f793f5]
Question
I have this AnimationTree. First, I started with a blended animation between idle/walk/run that has been working as intended. Then I added a one-shot for an animation to play periodically while the character is idle.
Here are the properties of the OneShot node:
I have this snippet that runs once. I have verified that this is definitely running just once, and not repeatedly.
self.animation_tree.set(
"parameters/ActionLookAroundOneShot/request",
AnimationNodeOneShot.ONE_SHOT_REQUEST_FIRE
)
Upon requesting the one-shot animation to fire, it continues and loops forever. (Unless an abort request is sent.)
What’s going on here? Have I misunderstood how one-shot animations are meant to be defined and triggered?