public static void SendCodeEditorUsage(IExternalCodeEditor codeEditor) { if (!UnityEngine.Analytics.Analytics.enabled) { return; } if (!EnableAnalytics()) { return; } var data = new AnalyticsData() { code_editor = codeEditor.GetType().FullName }; EditorAnalytics.SendEventWithLimit(k_EventName, data); }
public static void Register(IExternalCodeEditor externalCodeEditor) { if (Editor.m_ExternalCodeEditors.Select(editor => editor.GetType()).Any(editorType => editorType == externalCodeEditor.GetType())) { return; } Editor.m_ExternalCodeEditors.Add(externalCodeEditor); if (IsCurrentEditorPathExplicitlySet) { CodeEditor.Editor.SetCodeEditor(Editor.m_CurrentInstallation.Path); } }
public static void Register(IExternalCodeEditor externalCodeEditor) { if (Editor.m_ExternalCodeEditors.Select(editor => editor.GetType()).Where(editorType => editorType == externalCodeEditor.GetType()).Any()) { return; } Editor.m_ExternalCodeEditors.Add(externalCodeEditor); }