- Home /
In Game Mesh Deform With Bone
I recently imported a human model I made (skinned mesh and bones) and decided that I want the player to be able to look around by rotating the chest bone. (So when the camera looks up, the bone would rotate and the whole upper body would look up)
This worked for a while, but for some reason it randomly decided to stop working with no noticeable changes.
In the editor I can still deform the mesh with my bone, but in-game the bone will no longer rotate when my script tells it to rotate. Instead (when I pause and force it to rotate) the whole body rotates. How can I fix this to deform the mesh again in game?
(The deform working only in the editor, deformed by "Bone")
Hard to say without a lot more information. When do you call the bone rotations? In LateUpdate()? Do you play any animations that affect the bone(s)? Have you used Debug.Log lines to see which part of your code are called?
Yeah I am eventually going to do a large scale documentation when I have time to see what happens. But I think it has to do with re-importing the model after I rotated it 90 degrees, something screwed up, but I can now import the old model and it wont work either anymore. And the old model did work before. I'm using the same import settings and everything, so it's probably something very small. I just don't have time right now, so I posted this question to see if anyone else knew what was going on in the meantime.
Your answer
![](https://koobas.hobune.stream/wayback/20220612073638im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Sync player bone/skin renderer with unet? 1 Answer
Blender import warp 1 Answer
A Blender Character for Unity - Rigging Problem 1 Answer
Bake mesh scale. 1 Answer
Meshes not deforming properly when imported from blender 1 Answer