|
@@ -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);
|
|
|
}
|
|
|
}
|