Unity Animation Glitches in Build

2019-07-01 10:56发布

I have a character in my game that carries an umbrella and briefcase. The umbrella and briefcase are both part of the character's rig and he animates and looks great inside the editor and standalone PC builds (see example below). The character also has an animation where he opens up the umbrella. I am using mecanim.

Working Umbrella

However when I publish a Web, Android or iOS build, the umbrella gets stuck in a weird half open state like the below:

Broken Umbrella

And it opens fully in animation loops where it shouldn't.

There's no compression turned on that I can see, and I've exhausted all my ideas on why it would do this. But put simply, it works in the editor and in standalone PC builds, so why not in a Web, Android or iOS build?

Edit - I'm using Unity Pro, version 4.3.4f1

Edit 2 - Tested in the PC Standalone build and it works fine

Edit 3 - Wasted a bounty on this issue and I'm still no closer to fixing it, I'm now thinking of submitting a bug report to Unity.

Any hints would be greatly appreciated!!

Thanks

2条回答
来,给爷笑一个
2楼-- · 2019-07-01 11:38

Found it! At last!!

The cause was that under Edit > Project Settings > Quality, the "Blend Weights" option was set to "1 Bone", I upped it to "2 Bones" and voila! Problem solved!

Project Settings > Quality

查看更多
3楼-- · 2019-07-01 11:45

This have been happening to me since I updated to Unity 4.3.4f1. Animations work perfect in the Editor however they fail when I build the apk file to Android.

I don't know if it is related to my OS (Windows 8.1 x64) or not but I solve it saving my project and restarting Unity editor.

For now I will keep doing this till they fix this bug in the next release.

查看更多
登录 后发表回答