Skip to content

Commit 1bdb3cf

Browse files
committed
Update documentation
1 parent d09bfea commit 1bdb3cf

4 files changed

Lines changed: 28 additions & 3 deletions

File tree

Assets/Editor Toolbox/CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
1+
## 0.11.5 [18.08.2022]
2+
3+
### Added:
4+
- Possibility to hide the m_Script property while using the InLineEditorAttribute (HideScript = true)
5+
- Possibility to pick base type in the ReferencePickerAttribute
6+
- Possibility to pick display options in the ReferencePickerAttribute
7+
8+
### Changed:
9+
- Fix displaying custom labels in the ToolboxEditorList
10+
- For now all methods placed in the PropertyUtility script are public
11+
112
## 0.11.4 [17.07.2022]
213

314
### Added:

Assets/Editor Toolbox/README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,11 @@ public Material var1;
415415
```
416416
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/inlined1.png)
417417

418+
```csharp
419+
[InLineEditor(HideScript = false)]
420+
public MyCustomType var1;
421+
```
422+
418423
##### Reorderable List
419424

420425
Custom implementation of standard ReorderableList (UnityEditorInternal). Usable as an attribute in serialized fields or a single object in custom Editors.
@@ -540,9 +545,11 @@ public int var1;
540545
You can draw properties marked with the **[SerializeReference]** attribute with an additional type picker that allows you to manipulate what managed type will be serialized.
541546

542547
```csharp
543-
[SerializeReference, ReferencePicker]
548+
[SerializeReference, ReferencePicker(TypeGrouping = TypeGrouping.ByFlatName)]
544549
public Interface1 var1;
545550
[SerializeReference, ReferencePicker]
551+
public Interface1 var1;
552+
[SerializeReference, ReferencePicker(ParentType = typeof(ClassWithInterface2)]
546553
public ClassWithInterfaceBase var2;
547554

548555
public interface Interface1 { }

Assets/Examples/Scripts/SampleBehaviour2.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public int GetValue()
3838
[InLineEditor(drawSettings: true)]
3939
public AudioClip var24;
4040

41-
[InLineEditor]
41+
[InLineEditor(HideScript = true)]
4242
public Mesh var25;
4343

4444
[Label("Nested Properties", skinStyle: SkinStyle.Box)]

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,6 +415,11 @@ public Material var1;
415415
```
416416
![inspector](https://github.com/arimger/Unity-Editor-Toolbox/blob/develop/Docs/inlined1.png)
417417

418+
```csharp
419+
[InLineEditor(HideScript = false)]
420+
public MyCustomType var1;
421+
```
422+
418423
##### Reorderable List
419424

420425
Custom implementation of standard ReorderableList (UnityEditorInternal). Usable as an attribute in serialized fields or a single object in custom Editors.
@@ -540,9 +545,11 @@ public int var1;
540545
You can draw properties marked with the **[SerializeReference]** attribute with an additional type picker that allows you to manipulate what managed type will be serialized.
541546

542547
```csharp
543-
[SerializeReference, ReferencePicker]
548+
[SerializeReference, ReferencePicker(TypeGrouping = TypeGrouping.ByFlatName)]
544549
public Interface1 var1;
545550
[SerializeReference, ReferencePicker]
551+
public Interface1 var1;
552+
[SerializeReference, ReferencePicker(ParentType = typeof(ClassWithInterface2)]
546553
public ClassWithInterfaceBase var2;
547554

548555
public interface Interface1 { }

0 commit comments

Comments
 (0)