File tree Expand file tree Collapse file tree 3 files changed +6
-2
lines changed
Editor.Samples/Decorators Expand file tree Collapse file tree 3 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 22using TriInspector . Drawers ;
33using TriInspector . Elements ;
44using TriInspector . Resolvers ;
5+ using UnityEngine ;
56
6- [ assembly: RegisterTriAttributeDrawer ( typeof ( DropdownDrawer < > ) , TriDrawerOrder . Decorator ) ]
7+ [ assembly: RegisterTriAttributeDrawer ( typeof ( DropdownDrawer < > ) , TriDrawerOrder . Decorator , ApplyOnArrayElement = true ) ]
78
89namespace TriInspector . Drawers
910{
Original file line number Diff line number Diff line change 22using TriInspector . Resolvers ;
33using TriInspector . Validators ;
44
5- [ assembly: RegisterTriAttributeValidator ( typeof ( DropdownValidator < > ) ) ]
5+ [ assembly: RegisterTriAttributeValidator ( typeof ( DropdownValidator < > ) , ApplyOnArrayElement = true ) ]
66
77namespace TriInspector . Validators
88{
Original file line number Diff line number Diff line change @@ -10,6 +10,9 @@ public class Decorators_DropdownSample : ScriptableObject
1010 [ Dropdown ( nameof ( GetStringValues ) ) ]
1111 public string stringValue ;
1212
13+ [ Dropdown ( nameof ( GetStringValues ) ) ]
14+ public string [ ] stringArray ;
15+
1316 [ Dropdown ( nameof ( GetVectorValues ) ) ]
1417 public Vector3 vectorValue ;
1518
You can’t perform that action at this time.
0 commit comments