Skip to content

Commit

Permalink
Update: README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
arimger committed Jun 13, 2024
1 parent be2bca4 commit 27fd731
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 40 deletions.
41 changes: 21 additions & 20 deletions Assets/Editor Toolbox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,17 +268,6 @@ public int bigNumber;

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

#### LabelWidthAttribute

Supported types: **all**.

```csharp
[LabelWidth(220.0f)]
public int veryVeryVeryVeryVeryLongName;
```

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

#### LayerAttribute

Supported types: **int**.
Expand Down Expand Up @@ -348,6 +337,15 @@ public int var1;
[Label("My Custom Header", skinStyle: SkinStyle.Box, Alignment = TextAnchor.MiddleCenter)]
public int var1;
```
```csharp
[Highlight(0, 1, 0)]
public int var1;
```

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

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

```csharp
[EditorButton(nameof(MyMethod), "<b>My</b> Custom Label", activityType: ButtonActivityType.OnPlayMode, ValidateMethodName = nameof(ValidationMethod))]
public int var1;
Expand All @@ -362,10 +360,9 @@ private bool ValidationMethod()
return var1 == 0;
}
```
```csharp
[Highlight(0, 1, 0)]
public int var1;
```

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

```csharp
[Help("Help information", UnityMessageType.Warning, Order = -1)]
public int var1;
Expand All @@ -374,19 +371,23 @@ public int var2;

public string Message => "Dynamic Message";
```

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

```csharp
[ImageArea("https://img.itch.zone/aW1nLzE5Mjc3NzUucG5n/original/Viawjm.png", 150.0f)]
public int var1;
```
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/decorators.png)

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

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

![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/helpbox.png)
```csharp
[LabelWidth(220.0f)]
public int veryVeryVeryVeryVeryLongName;
```

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

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

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

Expand Down
41 changes: 21 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -268,17 +268,6 @@ public int bigNumber;

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

#### LabelWidthAttribute

Supported types: **all**.

```csharp
[LabelWidth(220.0f)]
public int veryVeryVeryVeryVeryLongName;
```

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

#### LayerAttribute

Supported types: **int**.
Expand Down Expand Up @@ -348,6 +337,15 @@ public int var1;
[Label("My Custom Header", skinStyle: SkinStyle.Box, Alignment = TextAnchor.MiddleCenter)]
public int var1;
```
```csharp
[Highlight(0, 1, 0)]
public int var1;
```

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

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

```csharp
[EditorButton(nameof(MyMethod), "<b>My</b> Custom Label", activityType: ButtonActivityType.OnPlayMode, ValidateMethodName = nameof(ValidationMethod))]
public int var1;
Expand All @@ -362,10 +360,9 @@ private bool ValidationMethod()
return var1 == 0;
}
```
```csharp
[Highlight(0, 1, 0)]
public int var1;
```

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

```csharp
[Help("Help information", UnityMessageType.Warning, Order = -1)]
public int var1;
Expand All @@ -374,19 +371,23 @@ public int var2;

public string Message => "Dynamic Message";
```

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

```csharp
[ImageArea("https://img.itch.zone/aW1nLzE5Mjc3NzUucG5n/original/Viawjm.png", 150.0f)]
public int var1;
```
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/decorators.png)

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

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

![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/helpbox.png)
```csharp
[LabelWidth(220.0f)]
public int veryVeryVeryVeryVeryLongName;
```

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

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

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

Expand Down

0 comments on commit 27fd731

Please sign in to comment.