• Stars
    star
    101
  • Rank 338,166 (Top 7 %)
  • Language
    C#
  • License
    MIT License
  • Created almost 4 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A simple tool for copying and pasting transitions in Animator Editor.

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:
    1. Selected transitions
    2. 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.

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