[unity] Fixed SkeletonGraphic RectTransform bounds not being applied at submeshes in match call. Closes #1983.

This commit is contained in:
Harald Csaszar 2021-11-08 17:20:37 +01:00
parent 77575a66d1
commit 2c535b65c7

View File

@ -477,6 +477,11 @@ namespace Spine.Unity {
this.rectTransform.sizeDelta = size;
this.rectTransform.pivot = p;
foreach (var submeshGraphic in submeshGraphics) {
submeshGraphic.rectTransform.sizeDelta = size;
submeshGraphic.rectTransform.pivot = p;
}
}
public event UpdateBonesDelegate BeforeApply;