mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
Merge branch '3.8' into 3.9-beta
This commit is contained in:
commit
f4408185f7
@ -131,7 +131,7 @@ namespace Spine.Unity {
|
|||||||
|
|
||||||
var canvas = skeletonGraphic.canvas;
|
var canvas = skeletonGraphic.canvas;
|
||||||
if (canvas == null) canvas = skeletonGraphic.GetComponentInParent<Canvas>();
|
if (canvas == null) canvas = skeletonGraphic.GetComponentInParent<Canvas>();
|
||||||
float scale = canvas.referencePixelsPerUnit;
|
float scale = canvas != null ? canvas.referencePixelsPerUnit : 100.0f;
|
||||||
|
|
||||||
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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user