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()); }
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()); }
public void CheckMissingReference() { UCTRUtils.CheckGameObjectsAll(DoCheckMissingReference); }
private static void CheckRectTransformPositionFloatingPointFromMenu() { UCTRUtils.CheckGameObjectsInCurrentScene("CheckRectTransformPositionFloatingPoint", DoCheckRectTransformPositionFloatingPoint); }
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); }
public void CheckMissingPrefabInstance() { UCTRUtils.CheckGameObjectsAll(DoCheckMissingPrefabInstance); }
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); }
private static void CheckCamera2DFromMenu() { UCTRUtils.CheckGameObjectsInCurrentScene("CheckCamera2D", DoCheckCamera2D); }
public void CheckCamera2D() { UCTRUtils.CheckGameObjectsAll(DoCheckCamera2D); }
public void CheckTextMeshProUGUIRaycastTarget() { UCTRUtils.CheckGameObjectsAll(DoCheckTextMeshProUGUIRaycastTarget); }
private static void CheckDisallowMultipleComponentFromMenu() { UCTRUtils.CheckGameObjectsInCurrentScene("CheckDisallowMultipleComponent", DoCheckDisallowMultipleComponent); }
public void CheckOdinRequired() { UCTRUtils.CheckGameObjectsAll(DoCheckOdinRequired); }
public void CheckDisallowMultipleComponent() { UCTRUtils.CheckGameObjectsAll(DoCheckDisallowMultipleComponent); }
public void CheckRectTransformPositionFloatingPoint() { UCTRUtils.CheckGameObjectsAll(DoCheckRectTransformPositionFloatingPoint); }
public void CheckCanvasCamera() { UCTRUtils.CheckGameObjectsAll(DoCheckCanvasCamera); }