Skip to content

Commit 193cfac

Browse files
committed
Update: README.md, package.json, CHANGELOG.md
1 parent ed500bb commit 193cfac

File tree

4 files changed

+44
-1
lines changed

4 files changed

+44
-1
lines changed

Assets/Editor Toolbox/CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
## 0.12.7 [10.12.2023]
2+
3+
### Changed:
4+
- Possibility to interact with ProgressBarDrawer (added IsInteractable property to the ProgressBarAttribute)
5+
- MinMaxAttribute now supports Vector2Int
6+
7+
### Added:
8+
- 'Revert Prefab Name' option for prefabs in the GameObject/Prefabs context menu
9+
110
## 0.12.6 [19.10.2023]
211

312
### Changed:

Assets/Editor Toolbox/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ Regular drawers have priority over Toolbox drawers and they cannot be mixed.
8686
#### TagSelectorAttribute
8787

8888
Supported types: **string**.
89+
8990
```csharp
9091
[TagSelector]
9192
public string var1;
@@ -96,6 +97,7 @@ public string var1;
9697
#### ProgressBarAttribute
9798

9899
Supported types: **int**, **float**, **double**.
100+
99101
```csharp
100102
[ProgressBar("Name", minValue: 0.0f, maxValue: 100.0f, HexColor = "#EB7D34", IsInteractable = true)]
101103
public float var1 = 80.0f;
@@ -107,6 +109,7 @@ public float var1 = 80.0f;
107109
#### MinMaxSliderAttribute
108110

109111
Supported types: **Vector2, Vector2Int**.
112+
110113
```csharp
111114
[MinMaxSlider(0.5f, 71.7f)]
112115
public Vector2 var1;
@@ -117,6 +120,7 @@ public Vector2 var1;
117120
#### AssetPreviewAttribute
118121

119122
Supported types: UnityEngine.**Object**.
123+
120124
```csharp
121125
[AssetPreview]
122126
public GameObject var1;
@@ -129,12 +133,14 @@ public Component var2;
129133
#### SuffixAttribute
130134

131135
Supported types: **all**.
136+
132137
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/suffix.png)
133138

134139

135140
#### EnumTogglesAttribute
136141

137142
Supported types: **Enums**.
143+
138144
```csharp
139145
[System.Flags]
140146
public enum FlagExample
@@ -161,25 +167,29 @@ public FlagExample enumFlag = FlagExample.Flag1 | FlagExample.Flag2 | FlagExampl
161167
#### NotNullAttribute
162168

163169
Supported 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

170177
Supported 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

176184
Supported 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

182191
Supported types: **all**.
192+
183193
Remark: can be used only within classes, structs are not supported.
184194
```csharp
185195
private readonly int[] presetValues = new[] { 1, 2, 3, 4, 5 };
@@ -201,6 +211,7 @@ public int presetTarget;
201211
#### SearchableEnumAttribute
202212

203213
Supported types: **Enums**.
214+
204215
```csharp
205216
[SearchableEnum]
206217
public KeyCode enumSearch;
@@ -211,6 +222,7 @@ public KeyCode enumSearch;
211222
#### ClampAttribute
212223

213224
Supported types: **int, float, double**.
225+
214226
```csharp
215227
[Clamp(minValue = 1.5f, maxValue = 11.3f)]
216228
public double var1;
@@ -219,6 +231,7 @@ public double var1;
219231
#### PasswordAttribute
220232

221233
Supported types: **string**.
234+
222235
```csharp
223236
[Password]
224237
public string password;
@@ -241,11 +254,13 @@ Supported types: **GameObject, Component**.
241254
#### LeftToggleAttribute
242255

243256
Supported types: **bool**.
257+
244258
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/lefttoggle.png)
245259

246260
#### FormattedNumberAttribute
247261

248262
Supported types: **int, float, double**.
263+
249264
```csharp
250265
[FormattedNumber]
251266
public int bigNumber;
@@ -256,6 +271,7 @@ public int bigNumber;
256271
#### LabelWidthAttribute
257272

258273
Supported types: **all**.
274+
259275
```csharp
260276
[LabelWidth(220.0f)]
261277
public int veryVeryVeryVeryVeryLongName;
@@ -266,6 +282,7 @@ public int veryVeryVeryVeryVeryLongName;
266282
#### LayerAttribute
267283

268284
Supported types: **int**.
285+
269286
```csharp
270287
[Layer]
271288
public int var1;

Assets/Editor Toolbox/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "com.browar.editor-toolbox",
33
"displayName": "Editor Toolbox",
4-
"version": "0.12.6",
4+
"version": "0.12.7",
55
"unity": "2018.1",
66
"description": "Tools, custom attributes, drawers, hierarchy overlay, and other extensions for the Unity Editor.",
77
"keywords": [

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ Regular drawers have priority over Toolbox drawers and they cannot be mixed.
8686
#### TagSelectorAttribute
8787

8888
Supported types: **string**.
89+
8990
```csharp
9091
[TagSelector]
9192
public string var1;
@@ -96,6 +97,7 @@ public string var1;
9697
#### ProgressBarAttribute
9798

9899
Supported types: **int**, **float**, **double**.
100+
99101
```csharp
100102
[ProgressBar("Name", minValue: 0.0f, maxValue: 100.0f, HexColor = "#EB7D34", IsInteractable = true)]
101103
public float var1 = 80.0f;
@@ -107,6 +109,7 @@ public float var1 = 80.0f;
107109
#### MinMaxSliderAttribute
108110

109111
Supported types: **Vector2, Vector2Int**.
112+
110113
```csharp
111114
[MinMaxSlider(0.5f, 71.7f)]
112115
public Vector2 var1;
@@ -117,6 +120,7 @@ public Vector2 var1;
117120
#### AssetPreviewAttribute
118121

119122
Supported types: UnityEngine.**Object**.
123+
120124
```csharp
121125
[AssetPreview]
122126
public GameObject var1;
@@ -129,12 +133,14 @@ public Component var2;
129133
#### SuffixAttribute
130134

131135
Supported types: **all**.
136+
132137
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/suffix.png)
133138

134139

135140
#### EnumTogglesAttribute
136141

137142
Supported types: **Enums**.
143+
138144
```csharp
139145
[System.Flags]
140146
public enum FlagExample
@@ -161,25 +167,29 @@ public FlagExample enumFlag = FlagExample.Flag1 | FlagExample.Flag2 | FlagExampl
161167
#### NotNullAttribute
162168

163169
Supported 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

170177
Supported 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

176184
Supported 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

182191
Supported types: **all**.
192+
183193
Remark: can be used only within classes, structs are not supported.
184194
```csharp
185195
private readonly int[] presetValues = new[] { 1, 2, 3, 4, 5 };
@@ -201,6 +211,7 @@ public int presetTarget;
201211
#### SearchableEnumAttribute
202212

203213
Supported types: **Enums**.
214+
204215
```csharp
205216
[SearchableEnum]
206217
public KeyCode enumSearch;
@@ -211,6 +222,7 @@ public KeyCode enumSearch;
211222
#### ClampAttribute
212223

213224
Supported types: **int, float, double**.
225+
214226
```csharp
215227
[Clamp(minValue = 1.5f, maxValue = 11.3f)]
216228
public double var1;
@@ -219,6 +231,7 @@ public double var1;
219231
#### PasswordAttribute
220232

221233
Supported types: **string**.
234+
222235
```csharp
223236
[Password]
224237
public string password;
@@ -241,11 +254,13 @@ Supported types: **GameObject, Component**.
241254
#### LeftToggleAttribute
242255

243256
Supported types: **bool**.
257+
244258
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/lefttoggle.png)
245259

246260
#### FormattedNumberAttribute
247261

248262
Supported types: **int, float, double**.
263+
249264
```csharp
250265
[FormattedNumber]
251266
public int bigNumber;
@@ -256,6 +271,7 @@ public int bigNumber;
256271
#### LabelWidthAttribute
257272

258273
Supported types: **all**.
274+
259275
```csharp
260276
[LabelWidth(220.0f)]
261277
public int veryVeryVeryVeryVeryLongName;
@@ -266,6 +282,7 @@ public int veryVeryVeryVeryVeryLongName;
266282
#### LayerAttribute
267283

268284
Supported types: **int**.
285+
269286
```csharp
270287
[Layer]
271288
public int var1;

0 commit comments

Comments
 (0)