mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-06 23:34:53 +08:00
[unity] Fixed SkeletonGraphic newly added SkeletonSubmeshGraphic having wrong offset. Closes #2433.
This commit is contained in:
parent
831566acf8
commit
dd81e4b062
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@ -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",
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user