• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by unityplease · Apr 23, 2015 at 11:11 AM · mecanimtransitionidle

Copy/Paste Mecanim Transitions

I created a complex state machine that has several transitions from an idle state:

Idle -> walk
Idle -> jump
Idle -> sit
Idle -> crouch
Idle -> lie down
(many more)

I have since realized that I want to have several Idle states and randomly get chosen to give variation to my character instances.

Because otherwise the character instances that start at the same time look choreographed performing the same idles at the same time.

There are two ways I can see to achieve this. One is have each idle state inside a sub state machine and a random int chooses which one to play. The other is to have two separate blend trees with the series of idles inside and have each on set by a float and transitions to the other blend tree idle, and then chooses another float before transitioning back.

Either way I have to copy all the numerous 10+ transitions from my old single idle state to either both my blend trees as exits or to each of the idles.

However there appears to be no quick way to copy/paste animation transitions.

Am I expected to manually rebind all these transitions or can the current idle state be copied with all its currently attached transitions and then substitute in other animations/ or sub state machine/blend tree in that states place?

The multiple randomly chosen idle state question has been asked many times before but doesn't appear to have a clear answer which is strange for what I would assume is a common problem.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

6 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by aegis123321 · Dec 26, 2020 at 03:00 PM

I met this problem but didn't find a good solution, so I made a tool to copy/paste transitions.

https://github.com/qwe321qwe321qwe321/Unity-AnimatorTransitionCopier


I hope it helps anyone who's been suffering from changing state in complex animator.

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
  • ‹
  • 1
  • 2

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

29 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

mecanim move and root animation 0 Answers

How to fluently transition into an animation state? 0 Answers

Mecanim - How to use "Exit Time" for a state that uses negative speed (anim playing backwards)? 2 Answers

Mecanim robot tutorial Rocketpack? 0 Answers

Mecanim opposite transitions. Easy made hard? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges