/// <summary> /// given a config, generate a textarea to display the raw json /// </summary> /// <param name="config"></param> protected void ShowSceneConfigRaw(GenericHierarchyConfig config) { rawTemplateText = Core.ConfigToString(config); _sceneEditScroll = GUILayout.BeginScrollView(_sceneEditScroll, GUILayout.Width(RIGHTPANELWIDTH), GUILayout.ExpandHeight(true)); { rawTemplateText = GUILayout.TextArea(rawTemplateText, GUILayout.ExpandWidth(true), GUILayout.ExpandHeight(true)); } GUILayout.EndScrollView(); }
/// <summary> /// given a config, generate a textarea to display the raw json /// </summary> /// <param name="config"></param> protected void ShowFolderConfigRaw(GenericHierarchyConfig config) { rawTemplateText = Core.ConfigToString(config); _folderEditScroll = GUILayout.BeginScrollView(_folderEditScroll, GUILayout.Width(350f), GUILayout.ExpandHeight(true)); { rawTemplateText = GUILayout.TextArea(rawTemplateText, GUILayout.ExpandWidth(true), GUILayout.ExpandHeight(true)); } GUILayout.EndScrollView(); }