• 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 /
  • Help Room /
avatar image
0
Question by h00man · Feb 21, 2018 at 01:24 PM · animation controller

why animation speed doesn't change?

hey guys, i have been trying to use couple of animations on my ship to move it.and i need to change the speed of my animations playing i need it much more slower. but it doesn't matter what i do , it won't change :( i have tried to change these parameters in the picture , but it didn't make any difference. alt text

alt text

and heres is the script im using :

 using System.Collections;
 using System.Collections.Generic;
 using UnityEngine;
 
 public class ShipMove : MonoBehaviour {
     private Animator ShipAnime;
     // Use this for initialization
     void Start () {
         ShipAnime = GetComponent<Animator> ();
     }
 
     // Update is called once per frame
     void Update () {
         if (ShipAnime == null)
             return;
 
         var x = Input.GetAxis ("Horizontal");
         var y = Input.GetAxis ("Vertical");
 
         move(x, y);
     }
     private void move(float x, float y){
 
         ShipAnime.SetFloat ("velx", x);
         ShipAnime.SetFloat ("vely", y);
 
 
     }
 }

no matter what i change the speed of animations are always the same. if anyone know what am i missing please help

Comment
Add comment · Show 19
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 meat5000 ♦ · Feb 21, 2018 at 02:05 PM 0
Share

Try changing the speed of the whole layer. Ti$$anonymous$$g of animation requires a lot of planning in the modelling/keyfra$$anonymous$$g stage and the speed at which animations run can even be affected by things such as FramesPerSecond settings in the 3D $$anonymous$$odeller itself. Allowing individual animations to change speed in Unity was only recently added (I do believe) owing to the basic observation that syncing becomes an issue. This is why proper layering is important, which requires planning. There is various information on this topic that may help yuo, with a bit of reading around

https://docs.unity3d.com/$$anonymous$$anual/BlendTree-AdditionalOptions.html

avatar image h00man meat5000 ♦ · Feb 21, 2018 at 02:15 PM 0
Share

which layer? you mean the blend tree speed section?

avatar image meat5000 ♦ h00man · Feb 21, 2018 at 02:25 PM 0
Share

Um no, if I get you right that one is related to the Blending Diagram for scaling. I mean the whole layer the Blend tree is in. I understand this may not be appropriate for your setup. I'm reading around situations in which your problem occurs but Im not finding anything. Perhaps in the meantime you could try playing with the $$anonymous$$ax/$$anonymous$$in values to 'slow' the animation by stretching out the range in which they occur, if this makes any sense.

Show more comments
avatar image h00man · Feb 21, 2018 at 03:50 PM 0
Share

i was wondering if i create animations in blender then importing it to unity would it make any difference?

avatar image meat5000 ♦ h00man · Feb 21, 2018 at 03:59 PM 0
Share

I made 2 animations directly from a cube within the Animation window (made 1 then duplicated for the other), one rotation in x and 1 in y. Added both motions to a BlendTree and they both work fine and the Speed field is open to change. Bizarre. Are they somehow Read only? Open the triangle in Animation window to see.

avatar image h00man meat5000 ♦ · Feb 21, 2018 at 05:38 PM 0
Share

maybe its my script which is causing the issue :(

avatar image meat5000 ♦ h00man · Feb 21, 2018 at 04:03 PM 0
Share

Animation in Blender would require the $$anonymous$$odel. But yes, this is the best way, In $$anonymous$$y Opinion. Every time I encounter that Animation window I want to bash my own brains out with a brick.

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by PlatPlayz · Feb 21, 2018 at 04:13 PM

I think you can just make space between keyframes bigger, so the animation would be longer.

Comment
Add comment · Show 1 · 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 h00man · Feb 21, 2018 at 04:53 PM 0
Share

i have tried that also but when i play the game animations wont be changed

avatar image
0

Answer by h00man · Feb 21, 2018 at 04:58 PM

here i have created a small scene to show my problem. there is a ship with some animations on it and it rotates by pressing W,A,S,D the only thing i need is to somehow slow down the speed of it's animations![alt text][1] here is the download link : http://s6.uplod.ir:182/d/2k26isu44hvhuf6to2ojby3uvddl5guma3ipwhxuq25pgqffuekhctq3/ship%20aniamtion.unitypackage

Comment
Add comment · Show 5 · 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 PlatPlayz · Feb 21, 2018 at 05:09 PM 0
Share

If you are trying to rotate it, you shouldn't use animation for that. I would suggest rotating it with script as shown here.

avatar image h00man PlatPlayz · Feb 21, 2018 at 05:28 PM 0
Share

thanks man for your answer i been down that road before. the main reason that i didn't use the script was that blend trees can actually combine two animations and play little bit of both. if i use script i have to limit it to rotate only 30 degrees then when i let go off the key it should get back to its idle state

avatar image PlatPlayz h00man · Feb 21, 2018 at 05:48 PM 0
Share

All of this is totally scriptable, just try to search a little. $$anonymous$$aybe you can find something you need in these links: Limiting rotation Resetting rotation

Show more comments

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

77 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 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 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

Play animations simultaneously on multiple game objects with multiple animation controllers 0 Answers

Animations and Animator don't work - 2D Platformer Game for Android 0 Answers

Using the Animator controllerl in a FPS 0 Answers

My Robot Kyle sticks here, but the animation controller is working. 0 Answers

Animation won't play 0 Answers


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