diff --git a/Editor/DrawerUtility.cs b/Editor/DrawerUtility.cs index b9dac4b..2cf4691 100644 --- a/Editor/DrawerUtility.cs +++ b/Editor/DrawerUtility.cs @@ -1243,7 +1243,6 @@ public static Dictionary SearchProperties(Shader shader, MaterialP } // whole word match search - var isMatch = false; var displayName = prop.displayName.ToLower(); var name = prop.name.ToLower(); searchingText = searchingText.ToLower(); @@ -1252,6 +1251,7 @@ public static Dictionary SearchProperties(Shader shader, MaterialP foreach (var keyword in keywords) { + var isMatch = false; isMatch |= displayName.Contains(keyword); isMatch |= name.Contains(keyword); contains &= isMatch; diff --git a/package.json b/package.json index ac69904..1f88420 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.jasonma.lwgui", - "version": "1.2.1", + "version": "1.2.2", "displayName": "LWGUI", "description": "A Lightweight, Flexible, Powerful Shader GUI System for Unity.", "keywords": [