From b900fdc63c86c403e7c62c58b21a24d6916984ba Mon Sep 17 00:00:00 2001 From: Harald Csaszar Date: Fri, 17 Nov 2023 17:32:55 +0100 Subject: [PATCH] [unity] Fixed compile error in one version branch (FreeMoveHandle). --- .../Sample VertexEffects/TwoByTwoTransformEffectExample.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spine-unity/Assets/Spine Examples/Scripts/Sample Components/Sample VertexEffects/TwoByTwoTransformEffectExample.cs b/spine-unity/Assets/Spine Examples/Scripts/Sample Components/Sample VertexEffects/TwoByTwoTransformEffectExample.cs index 341af18130..8ec4a47958 100644 --- a/spine-unity/Assets/Spine Examples/Scripts/Sample Components/Sample VertexEffects/TwoByTwoTransformEffectExample.cs +++ b/spine-unity/Assets/Spine Examples/Scripts/Sample Components/Sample VertexEffects/TwoByTwoTransformEffectExample.cs @@ -98,7 +98,7 @@ static void LocalVectorHandle (ref Vector2 v, Transform transform, Color color) Color originalColor = UnityEditor.Handles.color; UnityEditor.Handles.color = color; UnityEditor.Handles.DrawLine(transform.position, transform.TransformPoint(v)); -#if UNITY_2021_3_OR_NEWER +#if UNITY_2022_1_OR_NEWER v = transform.InverseTransformPoint(UnityEditor.Handles.FreeMoveHandle(transform.TransformPoint(v), 0.3f, Vector3.zero, UnityEditor.Handles.CubeHandleCap)); #else v = transform.InverseTransformPoint(UnityEditor.Handles.FreeMoveHandle(transform.TransformPoint(v), Quaternion.identity, 0.3f, Vector3.zero, UnityEditor.Handles.CubeHandleCap));