fixup! use string for prebuild method since the editor assemblies are stripped and thus a compile error occurs. Also handle the test init scene in the graphics setup and fix the non-xr filtering to work correctly.

This commit is contained in:
ryanhy 2019-06-20 10:46:22 -07:00
Родитель 9343554f19
Коммит eb3a0e383c
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -138,6 +138,8 @@ namespace UnityEditor.TestTools.Graphics
var labels = new List<string>(AssetDatabase.GetLabels(sceneAsset));
if (labels.Contains(bakeLabel) && scene.enabled)
{
EditorSceneManagement.EditorSceneManager.SetActiveScene(currentScene);
Debug.Log("baking lights for scene " + sceneAsset.name);
Lightmapping.giWorkflowMode = Lightmapping.GIWorkflowMode.OnDemand;