Skip to content

Commit d5d8b12

Browse files
committed
Address Morgan's feedback
1 parent 09441b0 commit d5d8b12

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Assets/QA/Tests/Core Platform Menu/SceneMenu.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ static void SetupEventSystem()
151151
var activeScene = SceneManager.GetActiveScene();
152152
bool hasSceneES = false;
153153

154-
foreach (var es in FindObjectsByType<EventSystem>(FindObjectsSortMode.None))
154+
foreach (var es in FindObjectsByType<EventSystem>(FindObjectsInactive.Exclude))
155155
{
156156
if (es.gameObject.scene == activeScene)
157157
{
@@ -226,7 +226,7 @@ void DiscoverScenes()
226226
static bool IsExcluded(string path)
227227
{
228228
for (int i = 0; i < kExcludedSegments.Length; i++)
229-
if (path.IndexOf(kExcludedSegments[i], StringComparison.OrdinalIgnoreCase) >= 0) return true;
229+
if (kExcludedSegments[i].Length > 0 && path.IndexOf(kExcludedSegments[i], StringComparison.OrdinalIgnoreCase) >= 0) return true;
230230
for (int i = 0; i < kExcludedRoots.Length; i++)
231231
if (path.StartsWith(kExcludedRoots[i], StringComparison.OrdinalIgnoreCase)) return true;
232232
return false;

Assets/Tools/AddScenesToBuild.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ static void RefreshBuildScenes(bool silent)
9292
static bool IsExcluded(string path)
9393
{
9494
for (int i = 0; i < kExcludedSegments.Length; i++)
95-
if (path.IndexOf(kExcludedSegments[i], StringComparison.OrdinalIgnoreCase) >= 0)
95+
if (kExcludedSegments[i].Length > 0 && path.IndexOf(kExcludedSegments[i], StringComparison.OrdinalIgnoreCase) >= 0)
9696
return true;
9797
for (int i = 0; i < kExcludedRoots.Length; i++)
9898
if (path.StartsWith(kExcludedRoots[i], StringComparison.OrdinalIgnoreCase))

0 commit comments

Comments
 (0)