Ejemplo n.º 1
0
        void SetWithShapeTypeWith(ARKitBlendShape shapeType, float value)
        {
            int    targetBlendShapeIndex = indexList[(int)shapeType];
            string targetBlendShapeName  = blendShapeList[targetBlendShapeIndex];
            var    index = skin.sharedMesh.GetBlendShapeIndex(targetBlendShapeName);

            if (index >= 0)
            {
                skin.SetBlendShapeWeight(index, value);
            }
        }
 static string EnumToString(ARKitBlendShape blendShapeType)
 {
     return(blendShapeType.ToString().Replace("_L", "Left").Replace("_R", "Right").ToLower());
 }