File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 ;
Original file line number Diff line number Diff 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 ) )
You can’t perform that action at this time.
0 commit comments