示例#1
0
    public void ApplyOrginalData(SkinInstance instance)
    {
        if (SkinInstance.isNullOrEmpry(instance))
        {
            return;
        }

        Transform mainTrs = instance.GetBonesTransform("Main");

        if (mainTrs)
        {
            mainTrs.localScale = OrginalData.mainBonesScale;
        }
    }
示例#2
0
    public void SaveOrginalData(SkinInstance instance)
    {
        if (bGetOrginalData)
        {
            return;
        }
        if (SkinInstance.isNullOrEmpry(instance))
        {
            return;
        }

        bGetOrginalData            = true;
        OrginalData                = new SkinOrginalData();
        OrginalData.mainBonesScale = Vector3.one;
        Transform mainTrs = instance.GetBonesTransform("Main");

        if (mainTrs)
        {
            OrginalData.mainBonesScale = mainTrs.localScale;
        }
    }