top of page
作家相片fang ma

Facial Blendshape Count Script



public class BlendshapeCount : MonoBehaviour
{
public SkinnedMeshRenderer head;

void Start()
    {
        Mesh m = head.sharedMesh;
 
        for (int i = 0; i < m.blendShapeCount; i++)
        {
            // 遍历面部表情blendshape名字和index
            string s = m.GetBlendShapeName(i);
            if(s == bsName)
            {
                // 找某个名字
                bsNum_Show = i;
            }
 
            print("Blend Shape: " + i + " " + s); // Blend Shape: 10 face_H UU

        }
    }
}



43 次查看0 則留言

相關文章

查看全部

Inspector GUI

https://answers.unity.com/questions/814870/why-arent-public-variables-shown-in-the-inspector.html public variables shown in the Inspector...

Comentários


bottom of page