Control animation speed of subtitle
Posted: Sat Oct 09, 2021 2:55 pm
Hi
I'm using the speech bubble prefab in my game and I am struggling to control the animation speed of the speech bubble.
I want the subtitle to show/hide with different speed in different situations and I want to control it from the sequencer.
I have created a float parameter in the animator controller and tied it to the animation speed value (standard Unity method).
I then change this parameter with the in-built AnimatorFloat() sequencer command.
When testing, the animation speed value is successfully changed, but is reset to the original value as soon as animation is over. So the next subtitle is animated with the original speed instead of the new one I just set.
The same happens when I try to use boolean parameters.
I cannot make any parameter values stick after they've been changed via the sequencer.
Is there some code that resets all animation controller parameters all the time?
If so, what's the best way to get around it?
I'm using the speech bubble prefab in my game and I am struggling to control the animation speed of the speech bubble.
I want the subtitle to show/hide with different speed in different situations and I want to control it from the sequencer.
I have created a float parameter in the animator controller and tied it to the animation speed value (standard Unity method).
I then change this parameter with the in-built AnimatorFloat() sequencer command.
When testing, the animation speed value is successfully changed, but is reset to the original value as soon as animation is over. So the next subtitle is animated with the original speed instead of the new one I just set.
The same happens when I try to use boolean parameters.
I cannot make any parameter values stick after they've been changed via the sequencer.
Is there some code that resets all animation controller parameters all the time?
If so, what's the best way to get around it?