Skip to content

Commit c2d7015

Browse files
committed
Add ScriptablesList archetype
1 parent 2bc293d commit c2d7015

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
using System;
2+
using System.Diagnostics;
3+
4+
namespace UnityEngine
5+
{
6+
[AttributeUsage(AttributeTargets.Field, AllowMultiple = true)]
7+
[Conditional("UNITY_EDITOR")]
8+
public class ScriptablesListAttribute : ToolboxArchetypeAttribute
9+
{
10+
public override ToolboxAttribute[] Process()
11+
{
12+
return new ToolboxAttribute[]
13+
{
14+
new InLineEditorAttribute(),
15+
new ReorderableListAttribute()
16+
{
17+
HasLabels = false
18+
}
19+
};
20+
}
21+
}
22+
}

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

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)