Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/qwe321qwe321qwe321/unity-animatortransitioncopier
A simple tool for copying and pasting transitions in Animator Editor.
https://github.com/qwe321qwe321qwe321/unity-animatortransitioncopier
animator-editor unity unity-editor unity-scripts unity3d-plugin
Last synced: 2 days ago
JSON representation
A simple tool for copying and pasting transitions in Animator Editor.
- Host: GitHub
- URL: https://github.com/qwe321qwe321qwe321/unity-animatortransitioncopier
- Owner: qwe321qwe321qwe321
- License: mit
- Created: 2020-12-25T19:11:34.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-07-13T15:51:09.000Z (over 1 year ago)
- Last Synced: 2024-10-10T10:06:43.236Z (about 1 month ago)
- Topics: animator-editor, unity, unity-editor, unity-scripts, unity3d-plugin
- Language: C#
- Homepage:
- Size: 1.72 MB
- Stars: 114
- Watchers: 4
- Forks: 9
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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](#features)
- [Preview](#preview)
- [Copy selected transitions](#copy-selected-transitions)
- [Copy all transitions of selected state](#copy-all-transitions-of-selected-state)
- [AnyState, EntryState, and ExitState](#anystate-entrystate-and-exitstate)
- [Getting Started](#getting-started)
- [Install via UPM git URL package.](#install-via-upm-git-url-package)
- [Open the tool in Unity.](#open-the-tool-in-unity)
- [FAQ](#faq)
- [Can it copy transitions between state machine and state??](#can-it-copy-transitions-between-state-machine-and-state)
- [Pasting AnyState and EntryState seems broken?](#pasting-anystate-and-entrystate-seems-broken)
- [Environment](#environment)
- [Classes](#classes)## Features
- [x] It copys full infomation, including transition settings and conditions.
* It holds the order of the transitions in state as well.
- [x] Two ways to copy:
1. Selected transitions
2. Ingoing/Outgoing transitions of selected state
- [x] It supports undo/redo as well.
- [x] It supports AnyState, EntryState, and ExitState.
- [x] It supports multiple selection for pasting. (Contributed by [@sungnyung](https://github.com/sungnyung) and [@kwbn64](https://github.com/kwbn64) [#1](https://github.com/qwe321qwe321qwe321/Unity-AnimatorTransitionCopier/pull/1))
- [x] It supports transitions between StateMachine and State.
- [x] Copy selected transitions that go from a State to a StateMachine. (Contributed by [@Eyellen](https://github.com/Eyellen) [#3](https://github.com/qwe321qwe321qwe321/Unity-AnimatorTransitionCopier/pull/3))
- [x] Copy outgoing transitions that go from a State to a StateMachine. ([#4](https://github.com/qwe321qwe321qwe321/Unity-AnimatorTransitionCopier/pull/4))
- [x] Copy selected transitions that go from a StateMachine to a State. ([#4](https://github.com/qwe321qwe321qwe321/Unity-AnimatorTransitionCopier/pull/4))
- [x] Copy ingoing transitions that go from a StateMachine to a State. ([#4](https://github.com/qwe321qwe321qwe321/Unity-AnimatorTransitionCopier/pull/4))
- [x] Copy selected transitions that go from a StateMachine to a StateMachine. ([#4](https://github.com/qwe321qwe321qwe321/Unity-AnimatorTransitionCopier/pull/4))
- [x] Copy outgoing transitions that go from a StateMachine to a StateMachine. ([#4](https://github.com/qwe321qwe321qwe321/Unity-AnimatorTransitionCopier/pull/4))
- [x] Copy ingoing transitions that go from a StateMachine to a StateMachine. ([#4](https://github.com/qwe321qwe321qwe321/Unity-AnimatorTransitionCopier/pull/4))## Preview
### Copy selected transitions
![](./img~/copy_selected_transitions.gif)### Copy all transitions of selected state
![](./img~/copy_selected_state.gif)### AnyState, EntryState, and ExitState
![](./img~/copy_selected_special_states.gif)> 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](https://docs.unity3d.com/Manual/upm-ui-giturl.html)
* Git URL:
```
https://github.com/qwe321qwe321qwe321/Unity-AnimatorTransitionCopier.git?path=Assets/com.pedev.unity-animator-transition-copier
```or asset package available in [releases](https://github.com/qwe321qwe321qwe321/Unity-AnimatorTransitionCopier/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](https://github.com/qwe321qwe321qwe321/Unity-AnimatorTransitionCopier/pull/4),
[#4](https://github.com/qwe321qwe321qwe321/Unity-AnimatorTransitionCopier/pull/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.
![](./img~/copy_selected_special_states_issue_1.gif)## Environment
Unity 2019.4.17f1 LTS## Classes
* [AnimatorTransitionCopierWindow.cs](./Assets/com.pedev.unity-animator-transition-copier/Editor/AnimatorTransitionCopierWindow.cs) - Main class.
* [EditorGUIHelper.cs](./Assets/com.pedev.unity-animator-transition-copier/Editor/EditorGUIHelper.cs) - A part of my helper library. It provides useful EditorGUI and GUILayout extensions.