Skip to content

Commit f1e235f

Browse files
committed
Minor improvements to the ScriptablesListAttribute
1 parent 0d9061b commit f1e235f

1 file changed

Lines changed: 16 additions & 1 deletion

File tree

Assets/Editor Toolbox/Scripts/Attributes/ToolboxAttributes/ArchetypeAttributes/ScriptablesListAttribute.cs

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,24 @@ public override ToolboxAttribute[] Process()
1414
new InLineEditorAttribute(),
1515
new ReorderableListAttribute()
1616
{
17-
HasLabels = false
17+
Foldable = Foldable,
18+
HasLabels = HasLabels,
19+
HasHeader = HasHeader
1820
}
1921
};
2022
}
23+
24+
/// <summary>
25+
/// Indicates whether list should be allowed to fold in and out.
26+
/// </summary>
27+
public bool Foldable { get; set; } = true;
28+
/// <summary>
29+
/// Indicates whether list should have a label above elements.
30+
/// </summary>
31+
public bool HasHeader { get; set; } = true;
32+
/// <summary>
33+
/// Indicates whether each element should have an additional label.
34+
/// </summary>
35+
public bool HasLabels { get; set; } = false;
2136
}
2237
}

0 commit comments

Comments
 (0)