Skip to content

Commit

Permalink
Update: README.md, package.json, CHANGELOG.md
Browse files Browse the repository at this point in the history
  • Loading branch information
arimger committed Dec 10, 2023
1 parent ed500bb commit 193cfac
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 1 deletion.
9 changes: 9 additions & 0 deletions Assets/Editor Toolbox/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 0.12.7 [10.12.2023]

### Changed:
- Possibility to interact with ProgressBarDrawer (added IsInteractable property to the ProgressBarAttribute)
- MinMaxAttribute now supports Vector2Int

### Added:
- 'Revert Prefab Name' option for prefabs in the GameObject/Prefabs context menu

## 0.12.6 [19.10.2023]

### Changed:
Expand Down
17 changes: 17 additions & 0 deletions Assets/Editor Toolbox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ Regular drawers have priority over Toolbox drawers and they cannot be mixed.
#### TagSelectorAttribute

Supported types: **string**.

```csharp
[TagSelector]
public string var1;
Expand All @@ -96,6 +97,7 @@ public string var1;
#### ProgressBarAttribute

Supported types: **int**, **float**, **double**.

```csharp
[ProgressBar("Name", minValue: 0.0f, maxValue: 100.0f, HexColor = "#EB7D34", IsInteractable = true)]
public float var1 = 80.0f;
Expand All @@ -107,6 +109,7 @@ public float var1 = 80.0f;
#### MinMaxSliderAttribute

Supported types: **Vector2, Vector2Int**.

```csharp
[MinMaxSlider(0.5f, 71.7f)]
public Vector2 var1;
Expand All @@ -117,6 +120,7 @@ public Vector2 var1;
#### AssetPreviewAttribute

Supported types: UnityEngine.**Object**.

```csharp
[AssetPreview]
public GameObject var1;
Expand All @@ -129,12 +133,14 @@ public Component var2;
#### SuffixAttribute

Supported types: **all**.

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


#### EnumTogglesAttribute

Supported types: **Enums**.

```csharp
[System.Flags]
public enum FlagExample
Expand All @@ -161,25 +167,29 @@ public FlagExample enumFlag = FlagExample.Flag1 | FlagExample.Flag2 | FlagExampl
#### NotNullAttribute

Supported types: UnityEngine.**Object**.

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


#### DirectoryAttribute

Supported types: **string**.

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

#### SceneNameAttribute

Supported types: **string**.

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

#### PresetAttribute

Supported types: **all**.

Remark: can be used only within classes, structs are not supported.
```csharp
private readonly int[] presetValues = new[] { 1, 2, 3, 4, 5 };
Expand All @@ -201,6 +211,7 @@ public int presetTarget;
#### SearchableEnumAttribute

Supported types: **Enums**.

```csharp
[SearchableEnum]
public KeyCode enumSearch;
Expand All @@ -211,6 +222,7 @@ public KeyCode enumSearch;
#### ClampAttribute

Supported types: **int, float, double**.

```csharp
[Clamp(minValue = 1.5f, maxValue = 11.3f)]
public double var1;
Expand All @@ -219,6 +231,7 @@ public double var1;
#### PasswordAttribute

Supported types: **string**.

```csharp
[Password]
public string password;
Expand All @@ -241,11 +254,13 @@ Supported types: **GameObject, Component**.
#### LeftToggleAttribute

Supported types: **bool**.

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

#### FormattedNumberAttribute

Supported types: **int, float, double**.

```csharp
[FormattedNumber]
public int bigNumber;
Expand All @@ -256,6 +271,7 @@ public int bigNumber;
#### LabelWidthAttribute

Supported types: **all**.

```csharp
[LabelWidth(220.0f)]
public int veryVeryVeryVeryVeryLongName;
Expand All @@ -266,6 +282,7 @@ public int veryVeryVeryVeryVeryLongName;
#### LayerAttribute

Supported types: **int**.

```csharp
[Layer]
public int var1;
Expand Down
2 changes: 1 addition & 1 deletion Assets/Editor Toolbox/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "com.browar.editor-toolbox",
"displayName": "Editor Toolbox",
"version": "0.12.6",
"version": "0.12.7",
"unity": "2018.1",
"description": "Tools, custom attributes, drawers, hierarchy overlay, and other extensions for the Unity Editor.",
"keywords": [
Expand Down
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ Regular drawers have priority over Toolbox drawers and they cannot be mixed.
#### TagSelectorAttribute

Supported types: **string**.

```csharp
[TagSelector]
public string var1;
Expand All @@ -96,6 +97,7 @@ public string var1;
#### ProgressBarAttribute

Supported types: **int**, **float**, **double**.

```csharp
[ProgressBar("Name", minValue: 0.0f, maxValue: 100.0f, HexColor = "#EB7D34", IsInteractable = true)]
public float var1 = 80.0f;
Expand All @@ -107,6 +109,7 @@ public float var1 = 80.0f;
#### MinMaxSliderAttribute

Supported types: **Vector2, Vector2Int**.

```csharp
[MinMaxSlider(0.5f, 71.7f)]
public Vector2 var1;
Expand All @@ -117,6 +120,7 @@ public Vector2 var1;
#### AssetPreviewAttribute

Supported types: UnityEngine.**Object**.

```csharp
[AssetPreview]
public GameObject var1;
Expand All @@ -129,12 +133,14 @@ public Component var2;
#### SuffixAttribute

Supported types: **all**.

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


#### EnumTogglesAttribute

Supported types: **Enums**.

```csharp
[System.Flags]
public enum FlagExample
Expand All @@ -161,25 +167,29 @@ public FlagExample enumFlag = FlagExample.Flag1 | FlagExample.Flag2 | FlagExampl
#### NotNullAttribute

Supported types: UnityEngine.**Object**.

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


#### DirectoryAttribute

Supported types: **string**.

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

#### SceneNameAttribute

Supported types: **string**.

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

#### PresetAttribute

Supported types: **all**.

Remark: can be used only within classes, structs are not supported.
```csharp
private readonly int[] presetValues = new[] { 1, 2, 3, 4, 5 };
Expand All @@ -201,6 +211,7 @@ public int presetTarget;
#### SearchableEnumAttribute

Supported types: **Enums**.

```csharp
[SearchableEnum]
public KeyCode enumSearch;
Expand All @@ -211,6 +222,7 @@ public KeyCode enumSearch;
#### ClampAttribute

Supported types: **int, float, double**.

```csharp
[Clamp(minValue = 1.5f, maxValue = 11.3f)]
public double var1;
Expand All @@ -219,6 +231,7 @@ public double var1;
#### PasswordAttribute

Supported types: **string**.

```csharp
[Password]
public string password;
Expand All @@ -241,11 +254,13 @@ Supported types: **GameObject, Component**.
#### LeftToggleAttribute

Supported types: **bool**.

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

#### FormattedNumberAttribute

Supported types: **int, float, double**.

```csharp
[FormattedNumber]
public int bigNumber;
Expand All @@ -256,6 +271,7 @@ public int bigNumber;
#### LabelWidthAttribute

Supported types: **all**.

```csharp
[LabelWidth(220.0f)]
public int veryVeryVeryVeryVeryLongName;
Expand All @@ -266,6 +282,7 @@ public int veryVeryVeryVeryVeryLongName;
#### LayerAttribute

Supported types: **int**.

```csharp
[Layer]
public int var1;
Expand Down

0 comments on commit 193cfac

Please sign in to comment.