So, i have an animated humanoid model that was from an fbx import. The model is made a few meshes (head, arms, legs body) and bones for animation. I have the animations all chopped up etc etc. and works as is.
So, the issue is trying to modify a mesh of a specific body part. I have made some code to modify a mesh in C# that works well when using it on a cube or some other primitive shape, but it does not work at all on the model (or its body parts) i imported.
For example, if i attach the script to the model’s head, it will change the texture, angle, and material of the head, but the vertices of the mesh does NOT change…and thats the most important part. However, attach this same script to a cube or something, it it works as intended.
So, I can only guess that the skinned mesh within my model is making things difficult? I have no idea why its not updating/changing. Does anybody have any clues to why i cant change the verts at run time? I do some stuff at Start() and Update(), even tho i wont need to update anything if this works as intended (its a one time/loading change)
If you want to see code, check this out, the code is more or less the same.
http://unity3d.com/support/documentation/ScriptReference/Mesh.html
thanks for your help
can you post more details about your code? The link only provides the general idea of what you're after; it may be the specifics that are throwing things off.
– Chris-D