public void OnPostprocessBuild(BuildReport report)
        {
            UnityEngine.Object[] array = Resources.FindObjectsOfTypeAll(typeof(SceneView));
            int num = 0;

            UnityEngine.Object[] array2 = array;
            for (int i = 0; i < array2.Length; i++)
            {
                SceneView sceneView = (SceneView)array2[i];
                if (sceneView.in2DMode)
                {
                    num++;
                }
            }
            if (BuildEventsHandlerPostProcess.s_NumOfSceneViews != array.Length || BuildEventsHandlerPostProcess.s_NumOf2dSceneViews != num || !BuildEventsHandlerPostProcess.s_EventSent)
            {
                BuildEventsHandlerPostProcess.s_EventSent         = true;
                BuildEventsHandlerPostProcess.s_NumOfSceneViews   = array.Length;
                BuildEventsHandlerPostProcess.s_NumOf2dSceneViews = num;
                EditorAnalytics.SendEventSceneViewInfo(new SceneViewInfo
                {
                    total_scene_views  = BuildEventsHandlerPostProcess.s_NumOfSceneViews,
                    num_of_2d_views    = BuildEventsHandlerPostProcess.s_NumOf2dSceneViews,
                    is_default_2d_mode = (EditorSettings.defaultBehaviorMode == EditorBehaviorMode.Mode2D)
                });
            }
        }
        private void ReportSceneViewInfo()
        {
            Object[] views             = Resources.FindObjectsOfTypeAll(typeof(SceneView));
            int      numOf2dSceneViews = 0;

            foreach (SceneView view in views)
            {
                if (view.in2DMode)
                {
                    numOf2dSceneViews++;
                }
            }
            if ((s_NumOfSceneViews != views.Length) || (s_NumOf2dSceneViews != numOf2dSceneViews) || !s_EventSent)
            {
                s_EventSent         = true;
                s_NumOfSceneViews   = views.Length;
                s_NumOf2dSceneViews = numOf2dSceneViews;
                EditorAnalytics.SendEventSceneViewInfo(new SceneViewInfo()
                {
                    total_scene_views  = s_NumOfSceneViews, num_of_2d_views = s_NumOf2dSceneViews,
                    is_default_2d_mode = EditorSettings.defaultBehaviorMode == EditorBehaviorMode.Mode2D
                });
            }
        }