From 4ef69422e1f5711530ea8b870a639e67cd4fcdd1 Mon Sep 17 00:00:00 2001 From: armadavalor <62026865+armadavalor@users.noreply.github.com> Date: Mon, 26 Oct 2026 01:04:58 +0300 Subject: [PATCH 1/3] Fix CUIGraphic compile error on Unity 6.7 --- Runtime/Scripts/Effects/CurlyUI/CUIGraphic.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Runtime/Scripts/Effects/CurlyUI/CUIGraphic.cs b/Runtime/Scripts/Effects/CurlyUI/CUIGraphic.cs index e574d38..d2ee8eb 100644 --- a/Runtime/Scripts/Effects/CurlyUI/CUIGraphic.cs +++ b/Runtime/Scripts/Effects/CurlyUI/CUIGraphic.cs @@ -512,6 +512,7 @@ public void ReferenceCUIForBCurves() // use tangent and start and end time to derive control point 2 and 3 } +#if !UNITY_6000_7_OR_NEWER #if UNITY_6000_6_OR_NEWER [System.Obsolete("Use Refresh() instead.")] #endif @@ -528,6 +529,7 @@ public override void ModifyMesh(Mesh _mesh) } } +#endif public override void ModifyMesh(VertexHelper _vh) { From aea7c577602b046a7edcd0bfd9280f8047467726 Mon Sep 17 00:00:00 2001 From: armadavalor Date: Wed, 4 Nov 2026 02:10:27 +0300 Subject: [PATCH 2/3] Use compound condition for the Obsolete attribute --- Runtime/Scripts/Effects/CurlyUI/CUIGraphic.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Scripts/Effects/CurlyUI/CUIGraphic.cs b/Runtime/Scripts/Effects/CurlyUI/CUIGraphic.cs index d2ee8eb..17aab1c 100644 --- a/Runtime/Scripts/Effects/CurlyUI/CUIGraphic.cs +++ b/Runtime/Scripts/Effects/CurlyUI/CUIGraphic.cs @@ -513,7 +513,7 @@ public void ReferenceCUIForBCurves() } #if !UNITY_6000_7_OR_NEWER -#if UNITY_6000_6_OR_NEWER +#if UNITY_6000_6_OR_NEWER && !UNITY_6000_7_OR_NEWER [System.Obsolete("Use Refresh() instead.")] #endif public override void ModifyMesh(Mesh _mesh) From b3e49e9320da7991b08160dcf3c57c21a336f56b Mon Sep 17 00:00:00 2001 From: armadavalor Date: Sun, 8 Nov 2026 15:10:49 +0300 Subject: [PATCH 3/3] Exclude ModifyMesh(Mesh) override entirely on Unity 6.6+ --- Runtime/Scripts/Effects/CurlyUI/CUIGraphic.cs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Runtime/Scripts/Effects/CurlyUI/CUIGraphic.cs b/Runtime/Scripts/Effects/CurlyUI/CUIGraphic.cs index 17aab1c..45fbb38 100644 --- a/Runtime/Scripts/Effects/CurlyUI/CUIGraphic.cs +++ b/Runtime/Scripts/Effects/CurlyUI/CUIGraphic.cs @@ -512,10 +512,7 @@ public void ReferenceCUIForBCurves() // use tangent and start and end time to derive control point 2 and 3 } -#if !UNITY_6000_7_OR_NEWER -#if UNITY_6000_6_OR_NEWER && !UNITY_6000_7_OR_NEWER - [System.Obsolete("Use Refresh() instead.")] -#endif +#if !UNITY_6000_6_OR_NEWER public override void ModifyMesh(Mesh _mesh) {