Awesome
Unity-AnimatorTransitionCopier
AnimatorTransitionCopier is a simple tool for copying and pasting animation transitions in the Animator editor.
It can help alleviate the frustration of having to manually redo all the animation states in a large state machine when making changes, such as switching from a clip to a blend tree.
Features
- 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 multiple selection for pasting. (Contributed by @sungnyung and @kwbn64 #1)
- It supports transitions between StateMachine and State.
- Copy selected transitions that go from a State to a StateMachine. (Contributed by @Eyellen #3)
- Copy outgoing transitions that go from a State to a StateMachine. (#4)
- Copy selected transitions that go from a StateMachine to a State. (#4)
- Copy ingoing transitions that go from a StateMachine to a State. (#4)
- Copy selected transitions that go from a StateMachine to a StateMachine. (#4)
- Copy outgoing transitions that go from a StateMachine to a StateMachine. (#4)
- Copy ingoing transitions that go from a StateMachine to a StateMachine. (#4)
Preview
Copy selected transitions
Copy all transitions of selected state
AnyState, EntryState, and ExitState
Notice that the tool window does not refresh immediately, it only refreshes when your mouse is on it.
Getting Started
Install via UPM git URL package.
- Install a package from a Git URL
- Git URL:
https://github.com/qwe321qwe321qwe321/Unity-AnimatorTransitionCopier.git?path=Assets/com.pedev.unity-animator-transition-copier
or asset package available in releases.
Open the tool in Unity.
- It is in the menu
Custom\AnimationTools\AnimatorTransitionCopier
- Put the Animator Controller file that you are editing into the field.
FAQ
Can it copy transitions between state machine and state??
YES
We solved this issue on #3, #4.
Pasting AnyState and EntryState seems broken?
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.
Environment
Unity 2019.4.17f1 LTS
Classes
- AnimatorTransitionCopierWindow.cs - Main class.
- EditorGUIHelper.cs - A part of my helper library. It provides useful EditorGUI and GUILayout extensions.