CreateBlendshape() public method

public CreateBlendshape ( string name, string undoName = "" ) : BlendShape
name string
undoName string
return BlendShape
コード例 #1
0
ファイル: BlendShapeEditor.cs プロジェクト: chav0/cockroach
        void CreateBlendshape()
        {
            if (spriteMeshCache)
            {
                BlendShape blendShape = spriteMeshCache.CreateBlendshape("New BlendShape", "Create BlendShape");

                spriteMeshCache.selectedBlendshape = blendShape;

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

                spriteMeshCache.blendShapeWeight = 100f;
            }
        }