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
2
Question by Jan_Julius · Mar 02, 2015 at 02:50 PM · animationmecanim

Can I change animation speed with mecanim?

Can't find it anywhere on google, only discussions

I would like to change animation speed as characters speed goes up etc how can I do this?

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
42

Answer by tanyanzhi · Sep 24, 2015 at 01:39 PM

In unity 5.2 or other version,you could try this:

  1. add a float parameter in animator,such as "runMultiplier"

  2. select the animation clip in animator you want to change speed,such as "run" animation clip

  3. in the inspector window check the Parameter checkbox below the Speed and select the parameter you just add,in this case,it is "runMultiplier"

  4. you can change the run animation speed by Animator.SetFloat("multiplier", 0.1f) in script.

Hope to help you~

alt text


2015-09-24-213817.png (108.4 kB)
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 Necrohunter · May 12, 2019 at 08:43 PM 0
Share

thank you! i didnt unserstand how to acces this $$anonymous$$ultiplier... searched for so much alternatives.. thanks.

avatar image GrayedFox · Nov 29, 2020 at 04:35 PM 0
Share

Omfg thank you so much, been searching through the Scripting API docs for hours. Can't believe I missed this. Spot on.

avatar image
0

Answer by Landern · Mar 02, 2015 at 02:57 PM

If you're referring to a single clip/animation over the entire set, that doesn't exist yet :(

But you can control it using Animator.speed, 1 is normal/default speed, 2 would be double, etc. However the failure is it has a global affect for the Animator. There are rumors of a per clip/animation speed being added in 5.1.

See the discussion here on the forums, this has been a feature many have requested... at least on the forums.

Comment
Add comment · Show 3 · 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 Jan_Julius · Mar 02, 2015 at 03:05 PM 0
Share

Correct, I've read that discussion it's been going on since 2012 though!

Hopefully it gets added because it has a lot of potential and it doesn't seem to hard to implement.

Yeah, I'm using multiple animations from a clip so what would you suggest me doing now? or what would be a good solution?

avatar image steakpinball · Mar 02, 2015 at 07:22 PM 1
Share

Here is the feedback thread to vote for. http://feedback.unity3d.com/suggestions/allow-scripting-of-playback-speed-for-individual-states-in-mecanim

avatar image Jan_Julius · Mar 03, 2015 at 08:43 AM 0
Share

Reading all of these threads and comments makes me wonder why it has been discussed about so long, has Unity even given a response to this?

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

23 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

Related Questions

Reference clip for Additive blending animation in Mecanim 0 Answers

Setup specific frame of a sprite animation and stop the animation there 0 Answers

Can I make animations snap to a frame? 1 Answer

mecanim keep feet planted 0 Answers

Scale assets AND Mecanim animation Keyframes? 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