public void OnGUI() { if (releaseNotesText == null) { releaseNotesText = Resources.Load <TextAsset>("RELEASE").text; } if (changeLogStyle == null) { changeLogStyle = new GUIStyle(EditorStyles.textArea) { richText = true }; } isChangelogFoldOut = EditorWindowUtils.Foldout(isChangelogFoldOut, "Release Notes"); if (isChangelogFoldOut) { using (new EditorGUILayout.HorizontalScope()) { EditorWindowUtils.Space(10); using (new EditorGUILayout.VerticalScope()) { scrollPosition = EditorWindowUtils.DrawScrollableSelectableLabel( scrollPosition, changelogWidth, releaseNotesText, changeLogStyle); } } } }