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 dshillady · Aug 08, 2017 at 03:09 AM · animationbuildmecanimandroid buildstandalone

How to fix bizarre mecanim behavior that occurs in build?

I hope someone can help me with this, as I've searched extensively but can't find anything in Unity documentation or right here in the Unity community that sheds any light on the issue.

I've been working on my game for many months now, but I foolishly had neglected to run regular tests in the build version, only in the editor.

And everything works 100% fine in the editor, but I'm getting really weird results in the build versions (PC and Android).

My game's main character is animated by mecanim, and uses several animations to function throughout the game.

But when I run the build(s), he only undergoes the idle animation, even when he's supposed to run, punch, shoot, etc.

The really strange thing is that the root motion for the animations is performed correctly, even though he's only swaying a little back and forth.

For example, when he's supposed to run, he only sways back and forth in his animation, but the model moves forward as if the correct animation was playing. Ditto for the lunging punches, etc.

And again, this only happens in the build versions--in the editor everything works fine, as he's running and punching and shooting and falling over, etc.

This occurs with both Unity 5.6 and 2017.1 (the only two versions I've tested this with).

It would be wonderful if someone could help me solve and fix this mystery, or at least point me in the right direction.

Thank you so much!

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 shivamTAGS · Aug 08, 2017 at 04:57 AM 0
Share

Have you tried script debugging with Build? I'd suggest that you take an empty project and try to build a sub set of the player mecanim and try to run that in build mode, it'll help you in understanding the problem better,

I've not seen this type of problem in Unity, There could be some flag which if you set will stop animations from running in your logic, make a subset and try to run it.

2 Replies

· Add your reply
  • Sort: 
avatar image
0
Best Answer

Answer by dshillady · Aug 10, 2017 at 08:09 PM

I've determined the cause of the problem, even though I don't understand exactly how it led to the behavior it did.

My main character is part of a prefab, including the main GameObject, the 3D model, a base circle, and several scripts.

It turns out that I had my animator component on both the main GameObject as well as the 3D model.

I guess the competition between the two caused the weird results.

After removing one, all is well now.

Thank you to everyone who took the time to consider this issue and help.

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
avatar image
0

Answer by theANMATOR2b · Aug 08, 2017 at 07:24 PM

Maybe something in your build settings that is culling or compressing the animation quality?

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

176 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

Related Questions

Access Animation States in Mecanim at runtime 1 Answer

Distribute terrain in zones 3 Answers

Mecanim controller not working in standalone 1 Answer

Mecanim BlendTree non-linear behaviour? 1 Answer

Unity4.3 legacy animations... 3 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