Unity animation playback BUG

The animation can be played normally in Unity, but the animation cannot be played normally when it is packaged and released

提示:这里简述项目相关背景:

In recent projects, this problem has troubled me for a long time. I have thought of all the problems I can think of, including watching the animation output information in the background after the project file is packaged, and debugging the output content. At this time, I will find that the animation should be played. This step cannot be played normally, but the output information after playing the animation can be output normally. At this point, we can only explain our animation format or our model settings.


Problem Description

提示:这里描述项目中遇到的问题:

Every time I encounter this kind of problem, it is very annoying, especially in Unity, it can run normally, but various bugs appear as soon as it is packaged and released, which is really puzzling. This problem has thought of all the problems that should be thought of. The animation including the model has also been re-made, and the settings of the model have also been re-adjusted. But this problem is still not working. Next, we should use our most primitive and common troubleshooting method, the comparison method, to compare our model with the normal animation model to see if any of our attributes are not set properly. Like animation formats including models.


Cause Analysis:

Tip: Fill in the analysis of the problem here:

With the above solution ideas, the work we are going to do next is simple and easy. After our investigation one by one, we found that the Read/Write Enable under the Model option of our model is not checked, and our Rig option is on There are also deviations from the format set by the Animation Type option. So since we see that something is wrong, we set the different places to the same format.


solution:

Tip: Fill in the specific solution to the problem here:

insert image description here
We can choose our model animation playback format on this option,
and it mainly has several formats, as shown in the figure below:
insert image description here
Our object is not a character model, so we can choose Generic. For a more detailed introduction to Rig, you can refer to the introduction given by Unity's official API to learn more about it yourself. Unity Rig API
and the Read/Write Enable option of our Model option is the same way to check it.

insert image description here
For detailed parameters of the Model option, please refer to the Unity official API introduction Unity Model API

Guess you like

Origin blog.csdn.net/m0_45244541/article/details/124228626