|
@@ -66,8 +66,9 @@ namespace Spine.Unity {
|
|
bone = skeletonGraphic.Skeleton.FindBone(boneName);
|
|
bone = skeletonGraphic.Skeleton.FindBone(boneName);
|
|
|
|
|
|
#if UNITY_EDITOR
|
|
#if UNITY_EDITOR
|
|
- if (Application.isEditor)
|
|
|
|
|
|
+ if (Application.isEditor) {
|
|
LateUpdate();
|
|
LateUpdate();
|
|
|
|
+ }
|
|
#endif
|
|
#endif
|
|
}
|
|
}
|
|
|
|
|
|
@@ -91,7 +92,9 @@ namespace Spine.Unity {
|
|
var thisTransform = this.transform as RectTransform;
|
|
var thisTransform = this.transform as RectTransform;
|
|
if (thisTransform == null) return;
|
|
if (thisTransform == null) return;
|
|
|
|
|
|
- float scale = skeletonGraphic.canvas.referencePixelsPerUnit;
|
|
|
|
|
|
+ var canvas = skeletonGraphic.canvas;
|
|
|
|
+ if (canvas == null) canvas = skeletonGraphic.GetComponentInParent<Canvas>();
|
|
|
|
+ float scale = canvas.referencePixelsPerUnit;
|
|
|
|
|
|
if (skeletonTransformIsParent) {
|
|
if (skeletonTransformIsParent) {
|
|
// Recommended setup: Use local transform properties if Spine GameObject is the immediate parent
|
|
// Recommended setup: Use local transform properties if Spine GameObject is the immediate parent
|