From f44490b1f3d6b35ae233665029986c61bdd8e1a7 Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Mon, 28 Aug 2023 21:06:50 +0200 Subject: [PATCH] [unity] Fixed compile error on Unity 2017.1 of last commits related to pull request #2351, commit 01273670. --- .../Runtime/spine-unity/Components/EditorSkeletonPlayer.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spine-unity/Assets/Spine/Runtime/spine-unity/Components/EditorSkeletonPlayer.cs b/spine-unity/Assets/Spine/Runtime/spine-unity/Components/EditorSkeletonPlayer.cs index d41f2e09b..da4d8b7a8 100644 --- a/spine-unity/Assets/Spine/Runtime/spine-unity/Components/EditorSkeletonPlayer.cs +++ b/spine-unity/Assets/Spine/Runtime/spine-unity/Components/EditorSkeletonPlayer.cs @@ -130,7 +130,11 @@ namespace Spine.Unity { oldTime = EditorApplication.timeSinceStartup; // Force repaint to update animation smoothly +#if UNITY_2017_2_OR_NEWER EditorApplication.QueuePlayerLoopUpdate(); +#else + SceneView.RepaintAll(); +#endif } private class SkeletonAnimationWrapper : IEditorSkeletonWrapper {