I have an animation controller and I’m spamming transitions like I should and everything worked greate until for an apperant reason it simply doesn’t let me add contion, screenshot :
Every other transition worked ! I’ve added a transition condition to every other Idle, just from idle1 to idle6 I press the + button and nothing happens.
I can add transitions between Idle5 and idle6 for example. I have no idea what’s happning, thanks !
EDIT: I’ll add that my condition is int if this adds some useful info to the problem
I see so many bugs and flaws in Unity, especially around post processing and animations, the game I'm coding right now will be the last one in this(...) engine...
Anyway. As the usual close & restart, start over from scratch, etc didn’t work this time, I fiddled a little more with this…
Finally, what worked for me was: open up “Settings” for the affected transition, and uncheck “Fixed Duration”. Add the condition you wish (now it magically works again), then check back “Fixed Duration” so you won’t mess up your anim/transition (probably would also work with changing anything else, so “poking” the transition some way a little seems to be the solution).
It looks like the error is triggered by removing transitions from an animation controller. Or I don’t know… It’s Unity… it can be anything…
some times you need to go to assets menu and “reimport all” will fix weird issues… right now i’m not sure why but im getting a bool variable that stops working if i edit a transition arrow… specifically the bool that results from
Physics2D.OverlapCircle()… it will stop working if i edit any of the transitions… and i need to go to reimport all in order to get back to normal.
guess what? this bug is still happening at 2019.2.4f1… Gstewart workaround worked for me… also, rad1c’s solution only worked the first time I did this…
For all the people that stumble on that problem in 2021. Make sure your transition is not the entry transition(marked orange), instead select an other state or right click the desired state and click Make Transition
If anyone is here because they get the error “parameter does not exist in controller”, it’s not an error, just add the parameter first on the left side of the screen.
To be more precise: Add the parameter with the + sign under the Parameters tab inside of the Animator window (not the Animation window). By default, this is indeed on the left side. Then go back to the inspector where you can add the condition.