Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • 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
6
Question by Oli192 · Jun 21, 2015 at 11:00 AM · animationanimatoranimator controllertransitions

Is there any way to make the default animation transition instant?

I'm making a 2D game and having to constantly set the transition times to 0 in the animator controller thing is really really annoying. Is there any way to set it to automatically do this? so that when i create a new transition it automatically changes the transition time to 0. Or is the any way to set the default transition time?

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

2 Replies

· Add your reply
  • Sort: 
avatar image
1

Answer by Galaxyzd · Aug 30, 2018 at 08:08 AM

I've been wondering the same forever. The default transition duration of 0.25 often feels very clunky and I'd love to be able to set a default for it. Sorry I didn't answer your question but let's get some activity on this thread so maybe someone who knows how to do this sees this?

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
avatar image
1

Answer by NLindblad · Oct 19, 2018 at 08:00 AM

A bit late to the party, but created a script that adds a context menu to the RuntimeAnimationController:

https://gist.github.com/Ryxali/33fa23ec833b2b64aae88e616e0f03bb

It currently sets: Has Exit Time: 0 Fixed Duration: True Transition Duration: 0 Transition Offset: 0

You can tweak these in the script.

Note that this will overwrite all transition parameters. So it's less a default and more an enforced standard.

Comment
Add comment · Show 2 · 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
avatar image cdr9042 · May 31, 2019 at 02:47 AM 0
Share

I added the script but nothing changed, new transition still has default value. How do I use it?

avatar image NLindblad cdr9042 · May 31, 2019 at 07:19 AM 1
Share

It's a context menu item, so if you right click the AnimationController -> Enforce Transition Settings

So it's a manual operation you can include in your workflow to ensure everything has the correct transition parameters. I'd advise you to backup your AnimationController before trying this though, as this is a very hacky solution that might break your asset depending on Unity version. You also need to ensure your assets are serialized as texts as well.

If you want it automated you could experiment with running the code on certain triggers, such as when the asset is saved, or before building or entering playmode.

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.

Follow this Question

Answers Answers and Comments

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Root motion accuracy issue 0 Answers

problem with animations running then jumping 3 Answers

Dynamically accessing value for multiple usage in AnimatorController transition conditions. 1 Answer

Animator Controller - Change State After Time 0 Answers

How to handle multiple animation variants 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