A model running in Unity suddenly disappears from the scene

Phenomenon: The model running in Unity suddenly disappears from the Game scene, and the Hierarchy double-clicks to select the model, and the model will be displayed in the Game scene again.

Two new models have been added to the project. In the opening animation, the model jumps from a high place. When the model looped to the second time, it suddenly disappeared out of nowhere for no reason. I want to see where the model is, and the result will be displayed again after being selected, and it will not disappear. After checking the camera rendering, there is no problem, and I am puzzled.

I searched the Internet and found that some people also encountered this problem.

Unity3d's strange pit - the model with animation suddenly does not display in the scene

So I tried to modify the CullingType of Animation on the model, and it turned out to be the problem!

Look at the difference between the two modes,

AnimationCullingType

 If you set Based On Renderers, the animation will not play when Unity is not rendering the model, so the model will not fall from a high place. When you select the model in the Hierarchy panel, the Scene scene will focus on the model At this time, the model animation continues to render, and the model will be seen in the Game scene again, and because the model can always be seen in the Scene scene, it will never disappear, which is why the model will always be displayed once selected!

Guess you like

Origin blog.csdn.net/qq_33461689/article/details/122705934