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);