public void ApplyOrginalData(SkinInstance instance) { if (SkinInstance.isNullOrEmpry(instance)) { return; } Transform mainTrs = instance.GetBonesTransform("Main"); if (mainTrs) { mainTrs.localScale = OrginalData.mainBonesScale; } }
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; } }