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 jhooks098 · Sep 30, 2014 at 08:00 AM · animationmechanimanimation layers

Issue with overriding animation layers

I have a my characters state machine working with an Idle, Run, and Jump. What i'd like to do is have a "Throw" animation that is masked to the torso, so when the character is either idle, running, or jumping, their torso will play the same throw animation and then return to normal animation.

I've set up a second animation layer, set it to override, and assigned my torso mask. I created a throw state and transition from anystate under the bool condition Throw. The problem is because i set the layer to override, it overrides all the time. And mechanim requires a default state so its just stuck on my throw animation.

Is there a way to achieve what i'm trying to do? Have an overriding animation that only overrides when I want it to play, and have it transitioning from whatever the base layer is playing?

Comment
Add comment · Show 3
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 Griffo · Sep 30, 2014 at 08:12 AM 0
Share

How do you set the throw bool condition?

     _animator.SetBool( "Throw", true );
     yield WaitForSeconds(0);
     _animator.SetBool( "Throw", false );

Then return to the empty New State on exit time.

alt text

screen shot 2014-09-30 at 09.08.42.png (18.2 kB)
avatar image t1000 Griffo · Feb 21, 2016 at 07:03 PM 1
Share

Someone says you must set the LayerWeight via code, for example:

 pAnimator.SetLayerWeight (1, 1f);

However, I am having the same issue, regardless of the animator the animation when set to override it is not applying the $$anonymous$$ask, that is, the whole body does the animation.

avatar image Denis Valjean · Jun 29, 2016 at 04:44 PM 1
Share

Same issue here. I have a blend tree with walk forward, left, right, etc. Want to override the animation with the char holding a gun. I can override the animation, but my char gets stuck in place. Its plays the animation overrided, but the char dont move. What the hell am I doing wrong?

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by twoshoedlou · Nov 22, 2018 at 02:50 AM

@jhooks098 Have you tried adjusting the weight of the second layer when you want the animation to play?

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.

Follow this Question

Answers Answers and Comments

29 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

Related Questions

Animation Layer Weight Issue 1 Answer

Scale animation with model 1 Answer

Character legs/knees twisting inside in animation 1 Answer

Gettings Animations in LocalSpace (Parenting Not Working) 0 Answers

Mechanim animation blend tree 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