Transition won't let me add condition for an unknown reason

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

1 Like

Well, it solved itself after 30 minutes. It simply decided to let me add a condition, leaving this thread for future googlers.

Hey, here I am! Future googler with same issue.

1 Like

Future googler 2 here. Same issue…

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…

6 Likes

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.

weird.

1 Like

It’s a quirk. Replace the anim clip (motion) in the state temporarily, and it works fine in my case.

“reimport all” not fix this

1 Like

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…

also… rad1c’s rumble x2

same bug in 2018.4.22f1 LTS

  • Tried to add a transition while in play mode. Condition add icon wasn’t greyed out or anything, but clicking it did nothing.
  • Exited play mode, still couldn’t add condition
  • Selected the state the transition originated from, deleted the reference to the anim clip
  • Condition add button worked, I added my condition and plugged the clip back in

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.

I had the same Issue the problem IS because your are on play mode you wont be able to save or add conditions in play mode hope this helps :slight_smile:

i had same problem now when i want to add condition i move unity windows to left side of the screen it sounds weird but it worked

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.

Source and image for beginners like me: Animation - Unity Learn, step 3.5.