How can I create Mesh with same name BlendShape with scripting?
With Unity-builtin Model importer, we can import Meshes with same name BlendShape.
I heard that fbx file with same name BlendShape can be created with Maya.
Here’s one model file with Blender and renamed BlendShape to simulate this situation.
However, it’s hard to create Mesh with same name BlendShape with scripting.
Mesh.AddBlendShapeFrame
method will throw exception if BlendShape with same name already exists on the Mesh,
and AFAIK, there is no other method to add BlendShape to Mesh.
Is there any way to create Mesh with same name BlendShape with scripting?
The purpose of creating mesh with same name BlendShape is to remove and move some vertices from existing Mesh with BlendShape.
To remove vertices, we have to reorder vertices on BlendShape buffer, but we can’t edit BlendShape buffer directly
And for other purposes, I decided to create new Mesh and copy all modified mesh data to new Mesh.
However, BlendShape with same name can’t be added to the Mesh with AddBlendShapeFrame
, so I could not copy some blendShapes.
If the model importer cannot import Mesh with same name BlendShape, there is no problem not to have way to create Mesh with same name BlendShape with scripting.
Because such meshes cannot be lived in Unity.