@@ -86,6 +86,7 @@ Regular drawers have priority over Toolbox drawers and they cannot be mixed.
8686#### TagSelectorAttribute
8787
8888Supported types: ** string** .
89+
8990``` csharp
9091[TagSelector ]
9192public string var1 ;
@@ -96,6 +97,7 @@ public string var1;
9697#### ProgressBarAttribute
9798
9899Supported types: ** int** , ** float** , ** double** .
100+
99101``` csharp
100102[ProgressBar (" Name" , minValue : 0 . 0 f , maxValue : 100 . 0 f , HexColor = " #EB7D34" , IsInteractable = true )]
101103public float var1 = 80 . 0 f ;
@@ -107,6 +109,7 @@ public float var1 = 80.0f;
107109#### MinMaxSliderAttribute
108110
109111Supported types: ** Vector2, Vector2Int** .
112+
110113``` csharp
111114[MinMaxSlider (0 . 5 f , 71 . 7 f )]
112115public Vector2 var1 ;
@@ -117,6 +120,7 @@ public Vector2 var1;
117120#### AssetPreviewAttribute
118121
119122Supported types: UnityEngine.** Object** .
123+
120124``` csharp
121125[AssetPreview ]
122126public GameObject var1 ;
@@ -129,12 +133,14 @@ public Component var2;
129133#### SuffixAttribute
130134
131135Supported types: ** all** .
136+
132137![ inspector] ( https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/suffix.png )
133138
134139
135140#### EnumTogglesAttribute
136141
137142Supported types: ** Enums** .
143+
138144``` csharp
139145[System .Flags ]
140146public enum FlagExample
@@ -161,25 +167,29 @@ public FlagExample enumFlag = FlagExample.Flag1 | FlagExample.Flag2 | FlagExampl
161167#### NotNullAttribute
162168
163169Supported types: UnityEngine.** Object** .
170+
164171![ inspector] ( https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/notnull1.png ) \
165172![ inspector] ( https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/notnull2.png )
166173
167174
168175#### DirectoryAttribute
169176
170177Supported types: ** string** .
178+
171179![ inspector] ( https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/directory1.png ) \
172180![ inspector] ( https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/directory2.png )
173181
174182#### SceneNameAttribute
175183
176184Supported types: ** string** .
185+
177186![ inspector] ( https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/scenename1.png ) \
178187![ inspector] ( https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/scenename2.png )
179188
180189#### PresetAttribute
181190
182191Supported types: ** all** .
192+
183193Remark: can be used only within classes, structs are not supported.
184194``` csharp
185195private readonly int [] presetValues = new [] { 1 , 2 , 3 , 4 , 5 };
@@ -201,6 +211,7 @@ public int presetTarget;
201211#### SearchableEnumAttribute
202212
203213Supported types: ** Enums** .
214+
204215``` csharp
205216[SearchableEnum ]
206217public KeyCode enumSearch ;
@@ -211,6 +222,7 @@ public KeyCode enumSearch;
211222#### ClampAttribute
212223
213224Supported types: ** int, float, double** .
225+
214226``` csharp
215227[Clamp (minValue = 1 . 5 f , maxValue = 11 . 3 f )]
216228public double var1 ;
@@ -219,6 +231,7 @@ public double var1;
219231#### PasswordAttribute
220232
221233Supported types: ** string** .
234+
222235``` csharp
223236[Password ]
224237public string password ;
@@ -241,11 +254,13 @@ Supported types: **GameObject, Component**.
241254#### LeftToggleAttribute
242255
243256Supported types: ** bool** .
257+
244258![ inspector] ( https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/lefttoggle.png )
245259
246260#### FormattedNumberAttribute
247261
248262Supported types: ** int, float, double** .
263+
249264``` csharp
250265[FormattedNumber ]
251266public int bigNumber ;
@@ -256,6 +271,7 @@ public int bigNumber;
256271#### LabelWidthAttribute
257272
258273Supported types: ** all** .
274+
259275``` csharp
260276[LabelWidth (220 . 0 f )]
261277public int veryVeryVeryVeryVeryLongName ;
@@ -266,6 +282,7 @@ public int veryVeryVeryVeryVeryLongName;
266282#### LayerAttribute
267283
268284Supported types: ** int** .
285+
269286``` csharp
270287[Layer ]
271288public int var1 ;
0 commit comments