Hi there,
I’m wondering whether it’s possible to control the duration of a blend (set in the Blend Settings of a transition) using a float variable. The ultimate goal is to be able to update the duration of specific blends at run-time depending on the animation playing when the blend is initiated.
For example, consider a state machine with two states, State A and State B. Within each state, it is possible for one of two animations to be playing. Depending on which of the two animations is playing, the duration of the blend between State A and State B should differ, e.g.:
- If Animation 1 is playing in State A when the blend to State B is initiated, the blend duration should be 0.5 seconds
- If Animation 2 is playing in State A when the blend to State B is initiated, the blend duration should be 1.0 second
Ideally, we would update the blend duration with a float variable.
The actual use-case for this is a lot more complex–on the order of 50 animations per State–otherwise we could happily set up a more traditional state machine with a state per animation.
Any suggestions much appreciated, and happy to add clarification