From 804b48c73ec648eaceb720cb79551fdbf3729fc9 Mon Sep 17 00:00:00 2001 From: mob-sakai <12690315+mob-sakai@users.noreply.github.com> Date: Thu, 12 Jun 2025 20:49:32 +0900 Subject: [PATCH] fix: TextMeshPro 3.2.0-pre support close #355 --- Packages/src/Runtime/Coffee.UIEffect.asmdef | 5 +++++ Packages/src/Runtime/UIEffectProjectSettings.cs | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Packages/src/Runtime/Coffee.UIEffect.asmdef b/Packages/src/Runtime/Coffee.UIEffect.asmdef index bb54849..3798e66 100644 --- a/Packages/src/Runtime/Coffee.UIEffect.asmdef +++ b/Packages/src/Runtime/Coffee.UIEffect.asmdef @@ -27,6 +27,11 @@ "name": "com.unity.timeline", "expression": "1.0.0", "define": "TIMELINE_ENABLE" + }, + { + "name": "com.unity.textmeshpro", + "expression": "[1.0.0,3.2.0-pre.1)", + "define": "LEGACY_TMP_ENABLE" } ], "noEngineReferences": false diff --git a/Packages/src/Runtime/UIEffectProjectSettings.cs b/Packages/src/Runtime/UIEffectProjectSettings.cs index f5e886b..44642f8 100644 --- a/Packages/src/Runtime/UIEffectProjectSettings.cs +++ b/Packages/src/Runtime/UIEffectProjectSettings.cs @@ -91,7 +91,7 @@ namespace Coffee.UIEffects [InitializeOnLoadMethod] private static void InitializeOnLoadMethod() { -#if UNITY_2023_2_OR_NEWER +#if !LEGACY_TMP_ENABLE const string tmpSupport = "TextMeshPro Support (Unity 6)"; const string version = "v5.9.0 (Unity 6)"; #else