mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[unity] Fixed a compile error on Unity 2017.1 introduced by previous commit 91cc6dd. See #1640.
This commit is contained in:
parent
e7457546b0
commit
25b8310bea
@ -588,7 +588,7 @@ namespace Spine.Unity {
|
|||||||
if (parentTransform)
|
if (parentTransform)
|
||||||
parentSize = parentTransform.rect.size;
|
parentSize = parentTransform.rect.size;
|
||||||
}
|
}
|
||||||
Vector2 anchorAreaSize = target.rectTransform.anchorMax * parentSize - target.rectTransform.anchorMin * parentSize;
|
Vector2 anchorAreaSize = Vector2.Scale(target.rectTransform.anchorMax - target.rectTransform.anchorMin, parentSize);
|
||||||
target.rectTransform.sizeDelta = size - anchorAreaSize;
|
target.rectTransform.sizeDelta = size - anchorAreaSize;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user