@@ -28,7 +28,7 @@ public class SceneDebugger : BaseDebugger
28
28
private bool sendToServer ;
29
29
private bool showUnityMethods ;
30
30
private bool showSystemMethods ;
31
- private bool hitMode = false ;
31
+ private bool hitMode ;
32
32
private Vector2 gameObjectScrollPos ;
33
33
34
34
/// <summary>
@@ -395,7 +395,7 @@ private void RenderTabHierarchy()
395
395
else
396
396
{
397
397
// Searching. Return all gameobjects with matching type name.
398
- if ( gameObjectSearch != gameObjectSearchCache )
398
+ if ( gameObjectSearch != gameObjectSearchCache && gameObjectSearch . Length > 2 )
399
399
{
400
400
try
401
401
{
@@ -412,7 +412,6 @@ private void RenderTabHierarchy()
412
412
Type type = AppDomain . CurrentDomain . GetAssemblies ( )
413
413
. Select ( a => a . GetType ( gameObjectSearch , false , true ) )
414
414
. FirstOrDefault ( t => t != null ) ;
415
- gameObjectSearchResult = Resources . FindObjectsOfTypeAll < GameObject > ( ) . Where ( go => Regex . IsMatch ( go . name , gameObjectSearch ) ) . OrderBy ( go => go . name ) . ToList ( ) ;
416
415
if ( type != null )
417
416
{
418
417
List < GameObject > gameObjects = Resources . FindObjectsOfTypeAll < GameObject > ( )
@@ -421,6 +420,10 @@ private void RenderTabHierarchy()
421
420
422
421
gameObjectSearchResult = gameObjects ;
423
422
}
423
+ else
424
+ {
425
+ gameObjectSearchResult = Resources . FindObjectsOfTypeAll < GameObject > ( ) . Where ( go => Regex . IsMatch ( go . name , gameObjectSearch , RegexOptions . IgnoreCase ) ) . OrderBy ( go => go . name ) . ToList ( ) ;
426
+ }
424
427
gameObjectSearchCache = gameObjectSearch ;
425
428
}
426
429
else
0 commit comments