Browse Source

[unity] Fixed SkeletonGraphic.MatchRectTransformWithBounds setting referenceSize. Closes #2408.

Harald Csaszar 1 year ago
parent
commit
3172475cd6

+ 2 - 0
spine-unity/Assets/Spine/Runtime/spine-unity/Components/SkeletonGraphic.cs

@@ -604,6 +604,8 @@ namespace Spine.Unity {
 				SetRectTransformSize(submeshGraphic, size);
 				submeshGraphic.rectTransform.pivot = p;
 			}
+
+			this.referenceSize = size;
 		}
 
 		public static void SetRectTransformSize (Graphic target, Vector2 size) {