From a42ecc918e9dbd1f3b15356dee4f662c07c875bf Mon Sep 17 00:00:00 2001 From: ALX Date: Wed, 25 Dec 2024 09:53:10 +0000 Subject: [PATCH] Update RTLTextMeshProEditor.cs Commented lines that were causing compile errors in Unity 6 --- .../RTLTMPro/Scripts/Editor/RTLTextMeshProEditor.cs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/Assets/RTLTMPro/Scripts/Editor/RTLTextMeshProEditor.cs b/Assets/RTLTMPro/Scripts/Editor/RTLTextMeshProEditor.cs index 7733b39..04d7d56 100644 --- a/Assets/RTLTMPro/Scripts/Editor/RTLTextMeshProEditor.cs +++ b/Assets/RTLTMPro/Scripts/Editor/RTLTextMeshProEditor.cs @@ -2,11 +2,12 @@ using UnityEditor; using UnityEngine; -#if TMP_VERSION_2_1_0_OR_NEWER -using TMP_UiEditorPanel = TMPro.EditorUtilities.TMP_EditorPanelUI; -#else -using TMP_UiEditorPanel = TMPro.EditorUtilities.TMP_UiEditorPanel; -#endif +// Creates issues in Unity 6 +//#if TMP_VERSION_2_1_0_OR_NEWER +//using TMP_UiEditorPanel = TMPro.EditorUtilities.TMP_EditorPanelUI; +//#else +//using TMP_UiEditorPanel = TMPro.EditorUtilities.TMP_UiEditorPanel; +//#endif namespace RTLTMPro { @@ -110,4 +111,4 @@ protected virtual void ListenForZeroWidthNoJoiner() Repaint(); } } -} \ No newline at end of file +}