@@ -78,6 +78,7 @@ Create/Editor Toolbox/Settings
7878### Regular Drawers <a name =" regulardrawers " ></a >
7979
8080Drawers based on built-in classes ** PropertyDrawer/DecoratorDrawer** and associated ** PropertyAttribute** .
81+ Regular drawers have priority over Toolbox drawers and they cannot be mixed.
8182
8283#### TagSelectorAttribute
8384
@@ -208,34 +209,6 @@ public string password;
208209
209210![ inspector] ( https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/password.png )
210211
211- #### LabelByChildAttribute
212-
213- ``` csharp
214- [System .Serializable ]
215- public class SampleClass1
216- {
217- public Material var1 ;
218- public KeyCode var2 ;
219- public SampleClass2 var3 ;
220- }
221-
222- [System .Serializable ]
223- public class SampleClass2
224- {
225- public int var1 ;
226- public string var2 ;
227- }
228-
229- [LabelByChild (" var2" )]
230- public SampleClass1 [] vars1 ;
231- [LabelByChild (" var3.var2" )]
232- public SampleClass1 var1 ;
233- ```
234-
235- ![ inspector] ( https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/labelbychild1.png )
236-
237- ![ inspector] ( https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/labelbychild2.png )
238-
239212#### ChildObjectOnlyAttribute
240213
241214#### SceneObjectOnlyAttribute
@@ -389,6 +362,16 @@ public float GetFloatValue()
389362public int var1 ;
390363```
391364
365+ ``` csharp
366+ public int var1 ;
367+
368+ [ShowDisabledIf (nameof (var1 ), 3 , Comparison = UnityComparisonMethod .LessEqual )]
369+ public int var2 ;
370+
371+ [HideDisabledIf (nameof (var1 ), 3 , Comparison = UnityComparisonMethod .GreaterEqual )]
372+ public int var3 ;
373+ ```
374+
392375``` csharp
393376public bool boolValue = true ;
394377[ShowWarningIf (nameof (boolValue ), false , " Message" , DisableField = true )]
@@ -502,18 +485,50 @@ public float MaxValue => 15.0f;
502485
503486Attributes handled internally by the ToolboxEditor. You can combine them with any other attributes.
504487
488+ ##### NewLabelAttribute
489+
505490``` csharp
506491[NewLabel (" Custom Label" )]
507492public float var1 = 25 . 4 f ;
508493```
509494
495+ ##### HideLabelAttribute
496+
510497``` csharp
511498[HideLabel ]
512499public float var1 ;
513500```
514501
515502![ inspector] ( https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/hidelabel.png )
516503
504+ ##### LabelByChildAttribute
505+
506+ ``` csharp
507+ [System .Serializable ]
508+ public class SampleClass1
509+ {
510+ public Material var1 ;
511+ public KeyCode var2 ;
512+ public SampleClass2 var3 ;
513+ }
514+
515+ [System .Serializable ]
516+ public class SampleClass2
517+ {
518+ public int var1 ;
519+ public string var2 ;
520+ }
521+
522+ [LabelByChild (" var2" )]
523+ public SampleClass1 [] vars1 ;
524+ [LabelByChild (" var3.var2" )]
525+ public SampleClass1 var1 ;
526+ ```
527+
528+ ![ inspector] ( https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/labelbychild1.png )
529+
530+ ![ inspector] ( https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/labelbychild2.png )
531+
517532#### Toolbox Archetype Attributes <a name =" toolboxarchetype " ></a >
518533
519534Using this attribute you are able to implement custom patterns of frequently grouped ** ToolboxAttributes** .
@@ -825,7 +840,7 @@ Copy and paste all components from/to particular GameObject.
825840
826841Create multiple ScriptableObjects at once .
827842```
828- Assets / Create / Toolbox / ScriptableObject Creation Wizard
843+ Assets / Create / Editor Toolbox / ScriptableObject Creation Wizard
829844```
830845
831846! [inspector ](https :// github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/createso.png)
0 commit comments