Skip to content

Commit b32e292

Browse files
kirill-titov-uEvergreen
authored andcommitted
Made list view elements in Default Volume Editor to be unselectable
1 parent 8303ca2 commit b32e292

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

Packages/com.unity.render-pipelines.core/Editor/Settings/DefaultVolumeProfileEditor.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,8 @@ bool MatchesSearchString(string title)
130130
};
131131

132132
ListView listView = new ListView(filteredCategoryEditors, -1, makeItem, bindItem);
133+
listView.selectionType = SelectionType.None;
134+
listView.reorderable = false;
133135
listView.virtualizationMethod = CollectionVirtualizationMethod.DynamicHeight;
134136
componentListElement.Add(listView);
135137

Packages/com.unity.render-pipelines.core/Editor/StyleSheets/DefaultVolumeProfileEditor.uss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,11 @@
2121
margin-left: -31px;
2222
margin-right: -6px;
2323
}
24+
25+
.unity-imgui-container.unity-list-view__item--selected, .unity-imgui-container.unity-list-view__item:checked{
26+
background-color: transparent;
27+
}
28+
29+
.unity-imgui-container.unity-list-view__item:hover {
30+
background-color: var(--unity-colors-highlight-background-hover);
31+
}

0 commit comments

Comments
 (0)