Пример #1
0
        public static void OnPostProcessBuild(BuildTarget target, string pathToBuildProject)
        {
            if (target == BuildTarget.Android && Common.TargetUDP())
            {
                // Send to Analytics
                EditorAnalyticsReqStruct reqStruct = new EditorAnalyticsReqStruct
                {
                    eventName  = EditorAnalyticsApi.k_ProjectBuildEventName,
                    webRequest = EditorAnalyticsApi.ProjectBuildEvent()
                };

                WebRequestQueue.Enqueue(reqStruct);
            }
        }
Пример #2
0
        static SdkImportEvent()
        {
            if (!PlayerPrefs.HasKey(k_SdkImportPlayerPref))
            {
                PlayerPrefs.SetInt(k_SdkImportPlayerPref, 1);

                UnityWebRequest          request   = EditorAnalyticsApi.ImportSdk();
                EditorAnalyticsReqStruct reqStruct = new EditorAnalyticsReqStruct
                {
                    eventName  = EditorAnalyticsApi.k_ImportSDKEventName,
                    webRequest = request
                };

                // Send the request
                WebRequestQueue.Enqueue(reqStruct);
            }
        }
        static ProjectOpenEvent()
        {
            if (!SessionState.GetBool(k_ProjectOpened, false))
            {
                if (EditorUserBuildSettings.activeBuildTarget.Equals(BuildTarget.Android) && Common.TargetUDP())
                {
                    SessionState.SetBool(k_ProjectOpened, true);

                    UnityWebRequest request = EditorAnalyticsApi.ProjectOpened();

                    EditorAnalyticsReqStruct reqStruct = new EditorAnalyticsReqStruct
                    {
                        eventName  = EditorAnalyticsApi.k_ProjectOpenEventName,
                        webRequest = request,
                    };

                    WebRequestQueue.Enqueue(reqStruct);
                }
            }
        }
Пример #4
0
        static ProjectOpenEvent()
        {
            if (!SessionState.GetBool(k_ProjectOpened, false))
            {
                SessionState.SetBool(k_ProjectOpened, true);
//                Debug.Log("[Debug]: project opened");

                UnityWebRequest request = EditorAnalyticsApi.ProjectOpened();

                EditorAnalyticsReqStruct reqStruct = new EditorAnalyticsReqStruct
                {
                    eventName  = EditorAnalyticsApi.k_ProjectOpenEventName,
                    webRequest = request,
                };

                WebRequestQueue.Enqueue(reqStruct);
            }
            else
            {
//                Debug.Log("DEBUG: Project Session Opened detected");
            }
        }