public void CheckAudioListenerMultiple()
        {
            var settings = UCTRUtils.GetSettings();

            Assert.IsNotNull(settings, "`UCTRSettings.asset` could not be found.");

            if (settings == null)
            {
                return;
            }

            var result = new List <string>();

            foreach (var n in settings.GetScenePathList())
            {
                var scene = EditorSceneManager.OpenScene(n);
                var count = Resources
                            .FindObjectsOfTypeAll <GameObject>()
                            .Where(c => c.scene.isLoaded)
                            .Where(c => c.hideFlags == HideFlags.None)
                            .Count(c => c.GetComponent <AudioListener>() != null)
                ;

                if (count <= 1)
                {
                    continue;
                }

                result.Add(n);
            }

            if (result.Count <= 0)
            {
                return;
            }

            var sb = new StringBuilder();

            foreach (var n in result)
            {
                sb.AppendLine(n);
            }

            Assert.Fail(sb.ToString());
        }
        public void CheckGlobalIllumination()
        {
            var settings = UCTRUtils.GetSettings();

            Assert.IsNotNull(settings, "`UCTRSettings.asset` could not be found.");

            if (settings == null)
            {
                return;
            }

            var result = new List <string>();

            var scenePathList = settings
                                .GetScenePathList()
                                .Where(c => c.Contains("2D"))
            ;

            foreach (var n in scenePathList)
            {
                var scene   = EditorSceneManager.OpenScene(n);
                var isValid = !Lightmapping.realtimeGI && !Lightmapping.bakedGI;

                if (isValid)
                {
                    continue;
                }

                result.Add(n);
            }

            if (result.Count <= 0)
            {
                return;
            }

            var sb = new StringBuilder();

            foreach (var n in result)
            {
                sb.AppendLine(n);
            }

            Assert.Fail(sb.ToString());
        }
예제 #3
0
        public void CheckSkyboxMaterial()
        {
            var settings = UCTRUtils.GetSettings();

            Assert.IsNotNull(settings, "`UCTRSettings.asset` could not be found.");

            if (settings == null)
            {
                return;
            }

            var result = new List <string>();

            var scenePathList = settings
                                .GetScenePathList()
                                .Where(c => c.Contains("2D"))
            ;

            foreach (var n in scenePathList)
            {
                var scene   = EditorSceneManager.OpenScene(n);
                var isValid = RenderSettings.skybox == null;

                if (isValid)
                {
                    continue;
                }

                result.Add(n);
            }

            if (result.Count <= 0)
            {
                return;
            }

            var sb = new StringBuilder();

            foreach (var n in result)
            {
                sb.AppendLine(n);
            }

            Assert.Fail(sb.ToString());
        }
예제 #4
0
 public void CheckMissingReference()
 {
     UCTRUtils.CheckGameObjectsAll(DoCheckMissingReference);
 }
 private static void CheckRectTransformPositionFloatingPointFromMenu()
 {
     UCTRUtils.CheckGameObjectsInCurrentScene("CheckRectTransformPositionFloatingPoint", DoCheckRectTransformPositionFloatingPoint);
 }
예제 #6
0
 private static void CheckOdinRequiredFromMenu()
 {
     UCTRUtils.CheckGameObjectsInCurrentScene("CheckOdinRequired", DoCheckOdinRequired);
 }
 private static void CheckTextMeshProUGUIRaycastTargetFromMenu()
 {
     UCTRUtils.CheckGameObjectsInCurrentScene("CheckTextMeshProUGUIRaycastTarget", DoCheckTextMeshProUGUIRaycastTarget);
 }
 public void CheckEventSystemDragThreshold()
 {
     UCTRUtils.CheckGameObjectsAll(DoCheckEventSystemDragThreshold);
 }
 public void CheckMissingScript()
 {
     UCTRUtils.CheckGameObjectsAll(DoCheckMissingScript);
 }
 public void CheckCanvasRendererCullTransparentMesh()
 {
     UCTRUtils.CheckGameObjectsAll(DoCheckCanvasRendererCullTransparentMesh);
 }
 private static void CheckAudioListenerExistFromMenu()
 {
     UCTRUtils.CheckGameObjectsInCurrentScene("CheckAudioListenerExist", DoCheckAudioListenerExist);
 }
 public void CheckCanvasScaler()
 {
     UCTRUtils.CheckGameObjectsAll(DoCheckCanvasScaler);
 }
 private static void CheckCanvasScalerFromMenu()
 {
     UCTRUtils.CheckGameObjectsInCurrentScene("CheckCanvasScaler", DoCheckCanvasScaler);
 }
예제 #14
0
 public void CheckMissingPrefabInstance()
 {
     UCTRUtils.CheckGameObjectsAll(DoCheckMissingPrefabInstance);
 }
예제 #15
0
 private static void CheckMissingPrefabInstanceFromMenu()
 {
     UCTRUtils.CheckGameObjectsInCurrentScene("CheckMissingPrefabInstance", DoCheckMissingPrefabInstance);
 }
 private static void CheckCanvasRendererCullTransparentMeshFromMenu()
 {
     UCTRUtils.CheckGameObjectsInCurrentScene("CheckCanvasRendererCullTransparentMesh", DoCheckCanvasRendererCullTransparentMesh);
 }
 public void CheckAudioListenerExist()
 {
     UCTRUtils.CheckGameObjectsAll(DoCheckAudioListenerExist);
 }
 private static void CheckMissingScriptFromMenu()
 {
     UCTRUtils.CheckGameObjectsInCurrentScene("CheckMissingScript", DoCheckMissingScript);
 }
 private static void CheckOnlyOneInSceneFromMenu()
 {
     UCTRUtils.CheckGameObjectsInCurrentScene("CheckOnlyOneInScene", DoCheckOnlyOneInScene);
 }
 private static void CheckEventSystemDragThresholdFromMenu()
 {
     UCTRUtils.CheckGameObjectsInCurrentScene("CheckEventSystemDragThreshold", DoCheckEventSystemDragThreshold);
 }
 public void CheckOnlyOneInScene()
 {
     UCTRUtils.CheckGameObjectsAll(DoCheckOnlyOneInScene);
 }
예제 #22
0
 private static void CheckCamera2DFromMenu()
 {
     UCTRUtils.CheckGameObjectsInCurrentScene("CheckCamera2D", DoCheckCamera2D);
 }
예제 #23
0
 public void CheckCamera2D()
 {
     UCTRUtils.CheckGameObjectsAll(DoCheckCamera2D);
 }
 public void CheckTextMeshProUGUIRaycastTarget()
 {
     UCTRUtils.CheckGameObjectsAll(DoCheckTextMeshProUGUIRaycastTarget);
 }
 private static void CheckDisallowMultipleComponentFromMenu()
 {
     UCTRUtils.CheckGameObjectsInCurrentScene("CheckDisallowMultipleComponent", DoCheckDisallowMultipleComponent);
 }
예제 #26
0
 public void CheckOdinRequired()
 {
     UCTRUtils.CheckGameObjectsAll(DoCheckOdinRequired);
 }
 public void CheckDisallowMultipleComponent()
 {
     UCTRUtils.CheckGameObjectsAll(DoCheckDisallowMultipleComponent);
 }
 public void CheckRectTransformPositionFloatingPoint()
 {
     UCTRUtils.CheckGameObjectsAll(DoCheckRectTransformPositionFloatingPoint);
 }
예제 #29
0
 public void CheckCanvasCamera()
 {
     UCTRUtils.CheckGameObjectsAll(DoCheckCanvasCamera);
 }