Search Unity

  1. Check out the Unite LA keynote for updates on the Visual Effect Editor, the FPS Sample, ECS, Unity for Film and more! Watch it now!
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

Is there a way to change multiple Animator Controller transitions at once?

Discussion in 'Animation' started by godsammit, Nov 10, 2018 at 3:42 AM.

  1. godsammit

    godsammit

    Joined:
    Saturday
    Posts:
    1
    I have an animator controller with over 50 animation transitions. I want all of the transitions to occur at the same speed. Naturally, I tried to select them all, and then change the slider, but it only actually affected one transition. Am I missing something or is this just something Unity isn't capable of doing?
     
  2. leftshoe18

    leftshoe18

    Joined:
    Jul 29, 2017
    Posts:
    16
    There are certain elements of the animation system that aren't compatible with multi-editing. This just might be one of those things.
     
  3. SilentSin

    SilentSin

    Joined:
    Jan 3, 2013
    Posts:
    99
    Things like this are a big part of why I made Animancer to replace animator controllers. Everything is much more flexible when done with code.

    That said, this particular issue has a simple solution. Delete all your transitions and the parameters controlling them and use CrossFade or CrossFadeInFixedTime to transition to the state you want, which lets you specify how long you want it to take in code.

    Another option would be to write an editor script that casts the RuntimeAnimatorController to an editor AnimatorController which lets you access its states and transitions, so you can set their time in that script.