mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-03-26 22:49:01 +08:00
[unity] Fixed SkeletonUtilityEyeConstraint wrong offset when disabled and re-enabled. Closes #1632.
This commit is contained in:
parent
3d7a4b3c05
commit
216193e4b3
@ -56,6 +56,10 @@ namespace Spine.Unity.Examples {
|
|||||||
|
|
||||||
protected override void OnDisable () {
|
protected override void OnDisable () {
|
||||||
if (!Application.isPlaying) return;
|
if (!Application.isPlaying) return;
|
||||||
|
|
||||||
|
for (int i = 0; i < eyes.Length; i++) {
|
||||||
|
eyes[i].localPosition = origins[i];
|
||||||
|
}
|
||||||
base.OnDisable();
|
base.OnDisable();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user