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 Bubsavvy · Jan 14, 2019 at 02:52 AM · animationtriggermecanimtransition

Mechanim Trigger Issue

Currently we are having an issue where a trigger is being ignored on our lower body layer, but not on our upperbody layer. When the player chooses to aim on stairs and then perform a dodge roll via a trigger, the trigger does fire, but the lower body transition is ignored. We are in two different mechanim states at the time of the aim on the stairs, the normal "Movement Tree" on the upper body & "Stair Tree" on the lower body. After a dodge roll is initiated the trigger is now active "supposedly" for both layers regardless of what state each layer is in. The upperbody produces the correct results and exits via transition to the dodgeroll. The lowerbody however ignores the trigger completely causing an issue with the animation because the lowerbody is needed to perform a proper dodgeroll.

Thoughts on what may be my problem here. Clearly, or at least its assumed, when on any state on any number of layers transitions should respond to triggers.

alt text alt text

capture2.png (20.9 kB)
capture1.png (29.3 kB)
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
1

Answer by sh_code · Jan 14, 2019 at 03:23 AM

  1. not enough information to properly answer you. also, I recommend leaving the assumption that it's a bug in the engine, as the LAST resort. because 99.9% of the time, that assumption is wrong.

  2. My psychic debugging powers are telling me that the layer which "ignores the trigger" does so because on that layer, you're not in a state which has a transition with the trigger, but in some other state, not connected to where you want to get.

Comment
Add comment · Show 3 · 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 Bubsavvy · Jan 14, 2019 at 03:39 AM 1
Share

@sh_code I'll investigate that, but afaik even if for any reason i am exiting the "Stair Tree" blend tree it can only go to 3 different states which are "$$anonymous$$ovement Tree", "Boy_Attack01", and "Boy_dodgeroll". The most likely of the three for the lower body is "$$anonymous$$ovement Tree" and even if it was there is still a transition via dodge trigger from that state as well. It is possible though that right after the dodge is initiated it could very well be transitioning to the "$$anonymous$$ovement Tree" state during the time period that the trigger is set causing the trigger to fail due to the fact that the transition process itself takes time. When analyzing the lowerbody layer there was no clear indication to me that it was even exiting the "Stair Tree" until the player is actual off of the stairs. I mainly blame unity devs out of frustration :D

avatar image sh_code Bubsavvy · Jan 14, 2019 at 05:23 AM 0
Share

not sure I understand fully (yes, this is a bit complicated for text description), but if the problem is that your state doesn't even get out of the stair tree, maybe try to play around with the "interruption source" settings, so that even a state two states away from where you're now can force to jump out of it.

sorry I can't suggest anything more specific.

avatar image Bubsavvy · Jan 14, 2019 at 03:43 AM 0
Share

I also would have been able to illustrate my issue a little better if we were provided more than the limit of 2 attachments. ;)

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

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

Nicer Mecanim transitions? 1 Answer

How to fluently transition into an animation state? 0 Answers

mecanim trasitions auto reset 0 Answers

Make mecanim transition after a delay in Unity3D 0 Answers

Interrupting animations 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