private void RenderApplyPatternButton() { if (GUILayout.Button(GetContentForApplyPatternButton(), GUILayout.Width(EditorGUILayoutEx.PreferedActionButtonWidth))) { UndoEx.RecordForToolAction(_heightPattern); if (_heightPattern.SetPatternString(_viewData.CurrentPathHeightPatternString)) { Debug.Log("The pattern string was applied successfully."); } } }