• 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 Syllith · Aug 11, 2012 at 12:05 PM · animationcrossfade

Animations don't crossfade when changing

Okay, so I've been working on a first person controller. You can run or just walk. When you walk or run, the animation looks fine. It's when you try to run immediately after taking out your gun. The running animation basically jumps to the animation, rather than crossfading to it. It doesn't do this when I'm walking and switch to running. Only after taking the gun out. It also happens when jumping too. The animations kind of glitch back and forth, rather than crossfading like I wanted.

This will make MUCH more sense after you watch this video:

https://dl.dropbox.com/u/2318787/Untitled.mov

Sorry about the bad quality. I can't play with high graphics while recording.

Since the code is way to big to post here, I'll just post the code that manages all the movement animations.

https://dl.dropbox.com/u/2318787/untitled

Any help would be extremely appreciated. Thanks

Comment
Add comment · Show 1
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 stoner221 · Aug 11, 2012 at 03:06 PM 0
Share

have you tried putting ur animations in layers and crossfading them that way??

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by TheDavil86 · Aug 11, 2012 at 03:23 PM

My suggestion is to do some simple tests to see if your logic is wrong or if your way of handling the animations is wrong. For example put 'Debug.Log("Crossfading");' after the actual animation code and that will give you a debug message if your logic is going through the way you think it should.

You may also consider adding a time to the crossfade as the second argument because that will make the crossfade happen in a set amount of time instead of waiting for the other animation to finish as much. Also keep in mind if you're calling the crossfade animation several times that's going to likely confuse the system so it will be crossfading repeatedly.

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

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

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Follow this Question

Answers Answers and Comments

9 People are following this question.

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

Related Questions

Problem with animations, How to blend them?? 0 Answers

Animation.Play blends previous animation 1 Answer

Animation.CrossFade help please 3 Answers

CrossFade to Specific Animation Time (Coordinate Animations) 1 Answer

Animation.CrossFade Lag 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