[unity] Fixed SkeletonUtilityEyeConstraint wrong offset when disabled and re-enabled. Closes #1632.

This commit is contained in:
Harald Csaszar 2020-03-02 17:05:17 +01:00
parent 3d7a4b3c05
commit 216193e4b3

View File

@ -56,6 +56,10 @@ namespace Spine.Unity.Examples {
protected override void OnDisable () {
if (!Application.isPlaying) return;
for (int i = 0; i < eyes.Length; i++) {
eyes[i].localPosition = origins[i];
}
base.OnDisable();
}