Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions com.unity.shadergraph/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
## [12.0.0] - 2021-01-11

### Added
- Fixed bug where an exception was thrown on undo operation after adding properties to a category [1348910] (https://fogbugz.unity3d.com/f/cases/1348910/)
- Added categories to the blackboard, enabling more control over the organization of shader properties and keywords in the Shader Graph tool. These categories are also reflected in the Material Inspector for URP + HDRP, for materials created from shader graphs.
- Added ability to define custom vertex-to-fragment interpolators.
- Support for the XboxSeries platform has been added.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -292,6 +292,15 @@ void OnMouseDownEvent(MouseDownEvent e)
OpenTextEditor();
e.PreventDefault();
}
else if (e.clickCount == 1 && e.button == (int)MouseButton.LeftMouse && IsRenamable())
{
// Select the child elements within this category (the field views)
var fieldViews = this.Query<SGBlackboardField>();
foreach (var child in fieldViews.ToList())
{
this.AddToSelection(child);
}
}
}

internal void OpenTextEditor()
Expand Down Expand Up @@ -664,12 +673,6 @@ public override void Select(VisualElement selectionContainer, bool additive)
public override void OnSelected()
{
AddToClassList("selected");
// Select the child elements within this category (the field views)
var fieldViews = this.Query<SGBlackboardField>();
foreach (var child in fieldViews.ToList())
{
this.AddToSelection(child);
}
}

public override void OnUnselected()
Expand Down