From dd638d0a722767e4c2c6689e05428db9124d50f2 Mon Sep 17 00:00:00 2001 From: Sai Narayan Date: Thu, 7 Oct 2021 17:15:37 -0700 Subject: [PATCH 1/3] created branch --- com.unity.shadergraph/Editor/Drawing/SearchWindowAdapter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.unity.shadergraph/Editor/Drawing/SearchWindowAdapter.cs b/com.unity.shadergraph/Editor/Drawing/SearchWindowAdapter.cs index f7c789b351d..90812184409 100644 --- a/com.unity.shadergraph/Editor/Drawing/SearchWindowAdapter.cs +++ b/com.unity.shadergraph/Editor/Drawing/SearchWindowAdapter.cs @@ -90,7 +90,7 @@ private int ComputeScoreForMatch(string[] queryTerms, SearcherItem matchItem) public override SearcherItem OnSearchResultsFilter(IEnumerable searchResults, string searchQuery) { if (searchQuery.Length == 0) - return searchResults.FirstOrDefault(); + return GetFirstChildItem(searchResults.FirstOrDefault()); // Sort results by length so that shorter length results are prioritized // prevents entries with short names getting stuck at end of list after entries with longer names when both contain the same word From 40daca131a7842de768cf40af8f161cd9f0235ce Mon Sep 17 00:00:00 2001 From: Sai Narayan Date: Mon, 25 Oct 2021 15:52:46 -0700 Subject: [PATCH 2/3] update SG package to 4.9.1 --- com.unity.shadergraph/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/com.unity.shadergraph/package.json b/com.unity.shadergraph/package.json index 90d0c6d344e..84f1de2e498 100644 --- a/com.unity.shadergraph/package.json +++ b/com.unity.shadergraph/package.json @@ -7,7 +7,7 @@ "displayName": "Shader Graph", "dependencies": { "com.unity.render-pipelines.core": "12.1.0", - "com.unity.searcher": "4.8.0" + "com.unity.searcher": "4.9.1" }, "samples": [ { From aecd1887dd9136f391fa3334d03993ec89c5329b Mon Sep 17 00:00:00 2001 From: Sai Narayan Date: Mon, 25 Oct 2021 17:00:03 -0700 Subject: [PATCH 3/3] added changelog --- com.unity.shadergraph/CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/com.unity.shadergraph/CHANGELOG.md b/com.unity.shadergraph/CHANGELOG.md index 1006fe1437f..3bc1babb1b3 100644 --- a/com.unity.shadergraph/CHANGELOG.md +++ b/com.unity.shadergraph/CHANGELOG.md @@ -55,6 +55,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Added many node synonyms for the Create Node search so that it's easier to find nodes. ### Changed + - Updated searcher package dependency version to 4.9.1 - Properties and Keywords are no longer separated by type on the blackboard. Categories allow for any combination of properties and keywords to be grouped together as the user defines. - Vector2/Vector3/Vector4 property types will now be properly represented by a matching Vector2/Vector3/Vector4 UI control in the URP + HDRP Material Inspector as opposed to the fallback Vector4 field that was used for any multi-dimensional vector type in the past. - Updated/corrected View Direction documentation @@ -71,6 +72,11 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. - Changed "Create Node" action in ShaderGraph stack separator context menu to "Add Block Node" and added it to main stack context menu ### Fixed + - Fixed a usability issue where in some cases searcher would suggest one collapsed category of results that user would have to manually expand anyway + - Fixed bug that causes search results to not be visible sometimes in the searcher window [1366061] + - Fixed bug that causes exceptions to be thrown when using the up/down arrow keys with search list focused [1358016] + - Fixed bug that causes some searcher items to be irreversibly collapsed due to expand icon disappearing on collapsing those items [1366074] + - Fixed bug that caused incorrect search results with non whitespaced queries for nodes with spaces in their name and for subgraphs [1359158] - Fixed bug where it was not possible to switch to Graph Settings tab in Inspector if multiple nodes and an edge was selected [1357648] (https://fogbugz.unity3d.com/f/cases/1357648/) - Fixed an issue where fog node density was incorrectly calculated. - Fixed inspector property header styling