Skip to content

Commit

Permalink
[unity] Fixed compile error in one version branch (FreeMoveHandle).
Browse files Browse the repository at this point in the history
  • Loading branch information
HaraldCsaszar committed Nov 17, 2023
1 parent 9c7bb84 commit b900fdc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand Down

0 comments on commit b900fdc

Please sign in to comment.