private void RenderPatternStringTextArea() { // Note: We also have to specify a width in order for wrapping to work accordingly. Also, 'ExpandWidth' is used // to ensure that the width expands as the Inspector area is enlarged. string newString = EditorGUILayoutEx.TextArea(_viewData.CurrentPathHeightPatternString, true, GUILayout.Height(_viewData.PatternTextAreaHeight), GUILayout.Width(300.0f), GUILayout.ExpandWidth(true)); if (newString != _viewData.CurrentPathHeightPatternString) { UndoEx.RecordForToolAction(_viewData); _viewData.CurrentPathHeightPatternString = newString; } }