AnimatorTransitionCopier is a simple tool to copy paste animation transitions in Animator editor.
It helps you to depart from suffering when you have to change animation states in a huge state machine, such as from clip to blend tree.
- It copys full infomation, including transition settings and conditions.
- It holds the order of the transitions in state as well.
- Two ways to copy:
- Selected transitions
- Ingoing/Outgoing transitions of selected state
- It supports undo/redo as well.
- It supports AnyState, EntryState, and ExitState.
- It supports transitions between StateMachine and State. (yet)
- Import
Assets/Editor
folder into your project. - Open window from menu: Custom > AnimationTools > Animator Transition Copier.
- Assign the AnimatorController and AnimatorLayer which you want to mainpulate and enjoy it.
Notice that the tool window does not refresh immediately, it only refreshs when your mouse is on it.
- AnimatorTransitionCopierWindow.cs - Main class.
- EditorGUIHelper.cs - A part of my helper library. It provides useful EditorGUI and GUILayout extensions.
NO, IT CAN'T.
Although I've tried to implement this feature, it seems impossible to get the outgoing transitions from AnimatorStateMachine. If someone can teach me how to get them, I'll make it.
NO, IT WORKS
It's kind of a Unity bug that the editor doesn't refresh immediately when you paste the transitions of entry or any state in non-first state machine.
But it actually works, just a UI bug.
Unity 2019.4.17f1 LTS