mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[unity] Fixed SkeletonGraphic.MatchRectTransformWithBounds setting referenceSize. Closes #2408.
This commit is contained in:
parent
fa4310b4d3
commit
3172475cd6
@ -604,6 +604,8 @@ namespace Spine.Unity {
|
|||||||
SetRectTransformSize(submeshGraphic, size);
|
SetRectTransformSize(submeshGraphic, size);
|
||||||
submeshGraphic.rectTransform.pivot = p;
|
submeshGraphic.rectTransform.pivot = p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
this.referenceSize = size;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void SetRectTransformSize (Graphic target, Vector2 size) {
|
public static void SetRectTransformSize (Graphic target, Vector2 size) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user