25개 이상의 토픽을 선택하실 수 없습니다. Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

26 lines
779 B

  1. using UnityEditor;
  2. using UnityEditor.Callbacks;
  3. #if (UNITY_5_6_OR_NEWER && !UNITY_5_6_0)
  4. namespace UnityEngine.UDP.Editor.Analytics
  5. {
  6. public static class ProjectBuildEvent
  7. {
  8. [PostProcessBuildAttribute]
  9. public static void OnPostProcessBuild(BuildTarget target, string pathToBuildProject)
  10. {
  11. if (target == BuildTarget.Android)
  12. {
  13. // Send to Analytics
  14. EditorAnalyticsReqStruct reqStruct = new EditorAnalyticsReqStruct
  15. {
  16. eventName = EditorAnalyticsApi.k_ProjectBuildEventName,
  17. webRequest = EditorAnalyticsApi.ProjectBuildEvent(),
  18. };
  19. WebRequestQueue.Enqueue(reqStruct);
  20. }
  21. }
  22. }
  23. }
  24. #endif