- Home /
Removing blending between two animations for only certain parameters
Hi. I am animating some sprites and I'm using the animator to change the value of a script that handle sprite swaps.
I've already modified the curves of those parameters so that during an animation, when parameters goes from 0 to 4, it will do so in a single frame and without going through 0->1->2->3->4-
I now want to solve the problem when the animator switches state. If my parameters was at 5 at the end of one state and at 3 at the start of the new state, I don't want my parameter to go : 5->4->3. I want it to switch to instantly.
I still want to use blending for other parameters and Ideally I'd like to keep avoid separating my animations in-between different animation files. Any ideas about a way I could solve this? Thanks.
A way I could fix this is always having the animations start and end with the same parameters but it can be quite limiting.
Answer by Sprawl · Oct 12, 2018 at 09:13 PM
I did not find a solution to avoid blending for certain parameters.
However, I did find a workaround for my issue. On the script that contains the value, I have a reference to my animator and I stop the update of the sprites whenever I'm in transition. This is not an ideal solution but it's better than removing blending altogether or making the workflow a lot harder by separating the sprites swaps and the animations.
Your answer
Follow this Question
Related Questions
unity freezes when running sprinting animation 0 Answers
Animator parameters 1 Answer
Animator Controller 2D RPG Best Practices 0 Answers
Animtion looping if joystick is held 0 Answers
Is there a new retargetting system for the animation in 5.5? 1 Answer