CreateBlendshape() 공개 메소드

public CreateBlendshape ( string name, string undoName = "" ) : BlendShape
name string
undoName string
리턴 BlendShape
예제 #1
0
        void CreateBlendshape()
        {
            if (spriteMeshCache)
            {
                BlendShape blendShape = spriteMeshCache.CreateBlendshape("New BlendShape", "Create BlendShape");

                spriteMeshCache.selectedBlendshape = blendShape;

                spriteMeshCache.CreateBlendShapeFrame(blendShape, 100f, "Create BlendShape");

                spriteMeshCache.blendShapeWeight = 100f;
            }
        }