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
1
Question by The Red Wheelbarrow · Jun 16, 2016 at 06:06 AM · animationattackstandard assetsblend tree

How to add attack animation to the movement blend tree?

Hi! I'm using standard character assets from unity, and there is this 3rd person controller prefab that comes with a bunch of animations, i.e. jump, crouch, and movement. I want to add an attack animation to the movement blend tree (2D Freeform Cartesian), so the character can attack at any stage of moving(idle, walking or running). Is it possible? I can imagine i would have to do something like a 2 dimentional array (every of the 15 stages can blend into attack animation, so 15x2 array?) for this, but there is no such thing in unity animation blend trees I guess :) Please help. Jacob

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

1 Reply

· Add your reply
  • Sort: 
avatar image
0

Answer by beppim · Jun 16, 2016 at 11:33 AM

From the Animator Window you should be able to see the Animator Controller attached to the object and add your own Animation, and then manage all the transitions from one animation to the other clicking on the lines, and of course the animation graph.... Link your animation to "Any State" and then trigger it by code.

Sorry I cannot be more specific (I don't have Unity right now here) but I think it should be a rather straight forward action if I understood well..

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 The Red Wheelbarrow · Jun 16, 2016 at 12:25 PM 0
Share

Hi! I have done something like this I guess already, but there is no blending, the transition is instant and it looks ugly. Is it possible that for example for running animation in the blend tree to blend into attack animation so the transition is smooth, not instant?

I have also tried layer masks and applied the attack animation to the upper body, but is looks hilarious, with the waving hands and legs staying still on the ground :D I also dont know how to play and attack animation only once (when i click attack button) when the animation is no in the default/main layer: i use Play("name of animation", layer); but it doesnt work.

When i set the weight of the animation layer where the attack animaton is to 1, the character is constantly playing that attack animation, and i dont want that.

I m not sure I have expressed myself clear enough for you to understand though :)

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Is there a bug with animation.isplaying 0 Answers

How do you script combo attacks? 2 Answers

Play Animation on Button Press 1 Answer

2D: initial sprite idle animation playing too fast upon game initiation until I input movement keys? 1 Answer

Dynamic thresholds runtime C# 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