This commit is contained in:
ryanhy 2019-05-10 13:27:41 -07:00
Родитель ec0f7a6f6f
Коммит 974381a1ad
2 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -114,7 +114,8 @@ namespace UnityEditor.TestTools.Graphics
if ((filter.BuildPlatform == buildPlatform || filter.BuildPlatform == BuildTarget.NoTarget) &&
(filter.GraphicsDevice == graphicsDevices.First() || filter.GraphicsDevice == GraphicsDeviceType.Null) &&
(filter.ColorSpace == colorSpace || filter.ColorSpace == ColorSpace.Uninitialized) &&
(filter.stereoModes == null || filter.stereoModes.Length == 0|| filter.stereoModes.Contains(stereoPath)))
(filter.stereoModes == null || filter.stereoModes.Length == 0 || filter.stereoModes.Contains(stereoPath)) &&
(filter.XrSdk == vrSDK.First() || filter.XrSdk == null))
{
scenesWithDisabledScenes.First(s => s.path.Contains(currentScene.name)).enabled = false;
Debug.Log(string.Format("Removed scene {0} from build settings because {1}", currentScene.name, filter.Reason));

Просмотреть файл

@ -11,6 +11,7 @@ public struct PlatformConfigTestFilter
public ColorSpace ColorSpace;
public BuildTarget BuildPlatform;
public GraphicsDeviceType GraphicsDevice;
public string XrSdk;
public StereoRenderingPath[] stereoModes;
public string Reason;
}