From 326be29d83231acde07e0a3424114583b508fdd0 Mon Sep 17 00:00:00 2001 From: Creta Park Date: Thu, 29 Jan 2026 11:03:37 +0900 Subject: [PATCH] fix: Add support legacy API fallback for CodeArea --- Editor/UI/CodeArea.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Editor/UI/CodeArea.cs b/Editor/UI/CodeArea.cs index 0d224b4..e3122e8 100644 --- a/Editor/UI/CodeArea.cs +++ b/Editor/UI/CodeArea.cs @@ -16,7 +16,11 @@ public static void Draw(ref string rawText, ref string highlightedText, SyntaxHi editor.SaveBackup(); editor.controlID = controlId; editor.position = rect; +#if UNITY_2023_1_OR_NEWER editor.isMultiline = true; +#else + editor.multiline = true; +#endif editor.style = style; editor.DetectFocusChange(); HandleTextFieldEvent(rect, controlId, content, ref highlightedText, theme, style, editor);