diff --git a/Assets/Dialogue/TestAssDialogue.dialoguegraph b/Assets/Dialogue/TestAssDialogue.dialoguegraph index 6a213760..fccb5a23 100644 --- a/Assets/Dialogue/TestAssDialogue.dialoguegraph +++ b/Assets/Dialogue/TestAssDialogue.dialoguegraph @@ -578,7 +578,7 @@ MonoBehaviour: serializedVersion: 2 Hash: 3b750432bd23177050f4f1fac360a6c3 m_Version: 2 - m_Position: {x: 1300.841, y: 141.66953} + m_Position: {x: 1300.841, y: 142.06729} m_Title: DialogueNode m_Tooltip: m_NodePreviewModel: diff --git a/Assets/Editor/Dialogue/DialogueContentDrawer.cs b/Assets/Editor/Dialogue/DialogueContentDrawer.cs index d149e13b..a1f3c57c 100644 --- a/Assets/Editor/Dialogue/DialogueContentDrawer.cs +++ b/Assets/Editor/Dialogue/DialogueContentDrawer.cs @@ -69,8 +69,12 @@ namespace Dialogue.Editor // Draw the appropriate field based on content type if (contentTypeProperty.enumValueIndex == (int)DialogueContentType.Text) { + // Create a custom style with word wrap enabled + GUIStyle wordWrapStyle = new GUIStyle(EditorStyles.textArea); + wordWrapStyle.wordWrap = true; + // Text field with word wrap for multi-line input - textProperty.stringValue = EditorGUI.TextArea(contentFieldRect, textProperty.stringValue); + textProperty.stringValue = EditorGUI.TextArea(contentFieldRect, textProperty.stringValue, wordWrapStyle); } else // Image {