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);
        }
示例#2
0
 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);
     }
 }
示例#3
0
 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);
 }