Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
0
Question by DeathByWarrior · Oct 05, 2011 at 07:14 AM · animation

Animation Problem

Hello again, in my FPS game, i have a standing animation that plays when the character doesn't move, it controls all parts of his body. I also have a reload animation which controls his arms and head. The standing animation is put into layer 0 and the reload animation is in layer 1. But when I call the reload animation and the standing animation is playing, the reload animation doesn't play at all. Both are set to clamp forever. Maybe it's because my standing animation is called every FixedUpdate frame? But the animation scripting page tells that it should work if the reload animation is in a higher layer than the standing one. Any ideas on why this happens?

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 syclamoth · Oct 05, 2011 at 07:19 AM 0
Share

I believe you have double-posted. Remember that if you have less than 15 karma, your posts need to be cleared by a moderator before they can be viewed! Be patient, and please delete the one with the least interest!

2 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by anszwa · Oct 05, 2011 at 08:04 AM

Hello, you are right with the layers, higher layers have more preority than lower once and rewrite lower animation, so that is not the problem.

You said you have two animations an idle(stand) and a reload right, and i think your problem is that you have set them ClampForever, because this causes that the animation is played once in the game and than always remain at the last frame.

My opinion is that you should set the standing animation to Loop and select the loop frame because this animation should be played as long as the caracter stands around, and the reload animation you should set to Once because if you call it with for example a key down input it is played one time (if it is on the higher layer) and than returned to the standing animation. Normaly it should work that way.

One more thing, do you have only one fbx file with the two animations on it or a single fbx file for every animation?

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 DeathByWarrior · Oct 07, 2011 at 03:15 AM 0
Share

The animations for the character I made in unity. So they are just animations.

avatar image DeathByWarrior · Oct 07, 2011 at 03:25 AM 0
Share

btw: Set reload animation to Once and stand animation loop, reload animation still doesn't work.

avatar image
0

Answer by Azound · Oct 07, 2011 at 06:33 AM

You seem to have the order of the animation layers incorrect. Layer 0 is the highest priority layer, so if an animation is playing in that layer (and uses 100% blend), then layer 1 will be ignored. Your reload animation should be in layer 0 and your idle animation should be in layer 1.

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 anszwa · Oct 07, 2011 at 12:54 PM 0
Share

No thats incorrect as far as I know. Layers with higher numbers have higher priorities. Please tell me if I am wrong but this is like i did it until now and it always worked.

avatar image DeathByWarrior · Oct 07, 2011 at 10:40 PM 0
Share

Well, it works so... thanks!

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

Multiple Cars not working 1 Answer

animation.isPlaying always true and Animation stuck at time 0 0 Answers

animation on key press problem 1 Answer

How to export MMD model to Unity? 0 Answers

Input.GetAxis Animation Problem 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