Skip to content

Commit 54bba08

Browse files
committed
Add option to hide default background in lists
1 parent 795f11c commit 54bba08

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Editor/Elements/TriListElement.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ public TriListElement(TriProperty property)
3737
_showElementLabels = settings?.ShowElementLabels ?? false;
3838
_reorderableListGui = new ReorderableList(null, _property.ArrayElementType)
3939
{
40+
showDefaultBackground = settings?.ShowDefaultBackground ?? true,
4041
draggable = settings?.Draggable ?? true,
4142
displayAdd = settings == null || !settings.HideAddButton,
4243
displayRemove = settings == null || !settings.HideRemoveButton,

Runtime/Attributes/Collections/ListDrawerSettings.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,5 +12,6 @@ public class ListDrawerSettingsAttribute : Attribute
1212
public bool HideRemoveButton { get; set; }
1313
public bool AlwaysExpanded { get; set; }
1414
public bool ShowElementLabels { get; set; }
15+
public bool ShowDefaultBackground { get; set; } = true;
1516
}
1617
}

0 commit comments

Comments
 (0)