[unity] Fixed SkeletonGraphic newly added SkeletonSubmeshGraphic having wrong offset. Closes #2433.

This commit is contained in:
Harald Csaszar 2023-12-12 13:36:38 +01:00
parent 831566acf8
commit dd81e4b062
2 changed files with 5 additions and 1 deletions

View File

@ -1001,6 +1001,10 @@ namespace Spine.Unity {
SkeletonSubmeshGraphic submeshGraphic = go.AddComponent<SkeletonSubmeshGraphic>();
submeshGraphic.maskable = this.maskable;
submeshGraphic.raycastTarget = false;
submeshGraphic.rectTransform.pivot = rectTransform.pivot;
submeshGraphic.rectTransform.anchorMin = Vector2.zero;
submeshGraphic.rectTransform.anchorMax = Vector2.one;
submeshGraphic.rectTransform.sizeDelta = Vector2.zero;
submeshGraphics.Add(submeshGraphic);
}
}

View File

@ -2,7 +2,7 @@
"name": "com.esotericsoftware.spine.spine-unity",
"displayName": "spine-unity Runtime",
"description": "This plugin provides the spine-unity runtime core.",
"version": "4.1.31",
"version": "4.1.32",
"unity": "2018.3",
"author": {
"name": "Esoteric Software",