//-------------------------------------- // IHasCustomMenu //-------------------------------------- void IHasCustomMenu.AddItemsToMenu(GenericMenu menu) { menu.AddItem(new GUIContent("Settings"), false, () => { UCL_ConsolePreferencesWindow.ShowModal(); }); if (Application.platform == RuntimePlatform.OSXEditor) { menu.AddItem(new GUIContent("Open Player Log"), false, UnityEditorInternal.InternalEditorUtility.OpenPlayerConsole); } menu.AddItem(new GUIContent("Open Editor Log"), false, UnityEditorInternal.InternalEditorUtility.OpenEditorConsole); menu.AddItem(new GUIContent("Copy To Clipboard"), false, () => { string fullLog = string.Empty; foreach (var log in m_logsView.Logs) { fullLog += string.Format(UCL_LogInfo.TAGGED_MESSAGE_FORMAT, log.TagName, log.LogString) + "\n"; } EditorGUIUtility.systemCopyBuffer = fullLog; ShowNotification(new GUIContent("Copied To Clipboard")); }); //UnityEditorInternal.InternalEditorUtility.OpenPlayerConsole }
public static void ShowSettings() { UCL_ConsolePreferencesWindow.ShowModal(); }