Skip to content

Commit 27fd731

Browse files
committed
Update: README.md
1 parent be2bca4 commit 27fd731

File tree

2 files changed

+42
-40
lines changed

2 files changed

+42
-40
lines changed

Assets/Editor Toolbox/README.md

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -268,17 +268,6 @@ public int bigNumber;
268268

269269
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/formattednumber.png)
270270

271-
#### LabelWidthAttribute
272-
273-
Supported types: **all**.
274-
275-
```csharp
276-
[LabelWidth(220.0f)]
277-
public int veryVeryVeryVeryVeryLongName;
278-
```
279-
280-
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/labelwidth.png)
281-
282271
#### LayerAttribute
283272

284273
Supported types: **int**.
@@ -348,6 +337,15 @@ public int var1;
348337
[Label("My Custom Header", skinStyle: SkinStyle.Box, Alignment = TextAnchor.MiddleCenter)]
349338
public int var1;
350339
```
340+
```csharp
341+
[Highlight(0, 1, 0)]
342+
public int var1;
343+
```
344+
345+
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/decorators.png)
346+
347+
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/horizontal.png)
348+
351349
```csharp
352350
[EditorButton(nameof(MyMethod), "<b>My</b> Custom Label", activityType: ButtonActivityType.OnPlayMode, ValidateMethodName = nameof(ValidationMethod))]
353351
public int var1;
@@ -362,10 +360,9 @@ private bool ValidationMethod()
362360
return var1 == 0;
363361
}
364362
```
365-
```csharp
366-
[Highlight(0, 1, 0)]
367-
public int var1;
368-
```
363+
364+
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/button.png)
365+
369366
```csharp
370367
[Help("Help information", UnityMessageType.Warning, Order = -1)]
371368
public int var1;
@@ -374,19 +371,23 @@ public int var2;
374371

375372
public string Message => "Dynamic Message";
376373
```
374+
375+
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/helpbox.png)
376+
377377
```csharp
378378
[ImageArea("https://img.itch.zone/aW1nLzE5Mjc3NzUucG5n/original/Viawjm.png", 150.0f)]
379379
public int var1;
380380
```
381-
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/decorators.png)
382-
383-
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/horizontal.png)
384381

385382
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/imagearea.png)
386383

387-
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/helpbox.png)
384+
```csharp
385+
[LabelWidth(220.0f)]
386+
public int veryVeryVeryVeryVeryLongName;
387+
```
388+
389+
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/labelwidth.png)
388390

389-
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/button.png)
390391

391392
#### Toolbox Condition Attributes <a name="toolboxcondition"></a>
392393

README.md

Lines changed: 21 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -268,17 +268,6 @@ public int bigNumber;
268268

269269
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/formattednumber.png)
270270

271-
#### LabelWidthAttribute
272-
273-
Supported types: **all**.
274-
275-
```csharp
276-
[LabelWidth(220.0f)]
277-
public int veryVeryVeryVeryVeryLongName;
278-
```
279-
280-
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/labelwidth.png)
281-
282271
#### LayerAttribute
283272

284273
Supported types: **int**.
@@ -348,6 +337,15 @@ public int var1;
348337
[Label("My Custom Header", skinStyle: SkinStyle.Box, Alignment = TextAnchor.MiddleCenter)]
349338
public int var1;
350339
```
340+
```csharp
341+
[Highlight(0, 1, 0)]
342+
public int var1;
343+
```
344+
345+
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/decorators.png)
346+
347+
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/horizontal.png)
348+
351349
```csharp
352350
[EditorButton(nameof(MyMethod), "<b>My</b> Custom Label", activityType: ButtonActivityType.OnPlayMode, ValidateMethodName = nameof(ValidationMethod))]
353351
public int var1;
@@ -362,10 +360,9 @@ private bool ValidationMethod()
362360
return var1 == 0;
363361
}
364362
```
365-
```csharp
366-
[Highlight(0, 1, 0)]
367-
public int var1;
368-
```
363+
364+
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/button.png)
365+
369366
```csharp
370367
[Help("Help information", UnityMessageType.Warning, Order = -1)]
371368
public int var1;
@@ -374,19 +371,23 @@ public int var2;
374371

375372
public string Message => "Dynamic Message";
376373
```
374+
375+
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/helpbox.png)
376+
377377
```csharp
378378
[ImageArea("https://img.itch.zone/aW1nLzE5Mjc3NzUucG5n/original/Viawjm.png", 150.0f)]
379379
public int var1;
380380
```
381-
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/decorators.png)
382-
383-
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/horizontal.png)
384381

385382
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/imagearea.png)
386383

387-
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/helpbox.png)
384+
```csharp
385+
[LabelWidth(220.0f)]
386+
public int veryVeryVeryVeryVeryLongName;
387+
```
388+
389+
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/labelwidth.png)
388390

389-
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/button.png)
390391

391392
#### Toolbox Condition Attributes <a name="toolboxcondition"></a>
392393

0 commit comments

Comments
 (0)