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 Feb 22, 2025
1 parent 92d5047 commit 43bace2
Show file tree
Hide file tree
Showing 4 changed files with 39 additions and 16 deletions.
13 changes: 8 additions & 5 deletions Assets/Editor Toolbox/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,16 @@
## 0.14.0 [23.02.2025]

## 0.13.2 [29.11.2024]

### Added:
- AnimationCurveSettingsAttribute
- OnToolbarGuiRight callback (ability to draw GUI elements on the right side of the toolbar container); OnToolbarGui replaced with the OnToolbarGuiLeft callback

### Changed:
- Possibility to use [EditorButton] and [DynamicHelp] in nested types
- For now SerializeReference properties without children will always be folded
- Fix exception while building labels for generic types without arguments
- Fix drawing SerializedDictionary if value or key types cannot be serialized
- Fix fetching private members from base classes in various cases (e.g. [EditorButton] or conditionals)
- Move FolderData to the Runtime assembly to fix issues caused by the Visual Scripting package
- Fix minor rendering issues caused by the ReoerdableList's footer position
- Fix clearing cached Editor instances in the [InLineEditor] (fix for the AudioClip still playing)
- Improve displaying [SerializeReference]-based properties in the multi-editing mode

## 0.13.1 [30.08.2024]

Expand Down
20 changes: 15 additions & 5 deletions Assets/Editor Toolbox/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -738,11 +738,12 @@ To prevent issues after renaming types use `UnityEngine.Scripting.APIUpdating.Mo
```csharp
[SerializeReference, ReferencePicker(TypeGrouping = TypeGrouping.ByFlatName)]
public ISampleInterface var1;
[SerializeReference, ReferencePicker(ForceUninitializedInstance = true)]
public ISampleInterface var1;
[SerializeReference, ReferencePicker(ParentType = typeof(ClassWithInterface2)]
public ClassWithInterfaceBase var2;

[SerializeReference, ReferencePicker(ForceUninitializedInstance = true)]
public ISampleInterface var3;
```
```csharp
public interface ISampleInterface { }

[Serializable]
Expand Down Expand Up @@ -1029,10 +1030,11 @@ public static class MyEditorUtility
{
static MyEditorUtility()
{
ToolboxEditorToolbar.OnToolbarGui += OnToolbarGui;
ToolboxEditorToolbar.OnToolbarGuiLeft += OnToolbarGuiLeft;
ToolboxEditorToolbar.OnToolbarGuiRight += OnToolbarGuiRight;
}

private static void OnToolbarGui()
private static void OnToolbarGuiLeft()
{
GUILayout.FlexibleSpace();
if (GUILayout.Button("1", Style.commandLeftStyle))
Expand All @@ -1056,6 +1058,14 @@ public static class MyEditorUtility
Debug.Log("5");
}
}

private static void OnToolbarGuiRight()
{
if (GUILayout.Button("1"))
{
Debug.Log("1");
}
}
}
```

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.13.2",
"version": "0.14.0",
"unity": "2018.1",
"description": "Tools, custom attributes, drawers, hierarchy overlay, and other extensions for the Unity Editor.",
"keywords": [
Expand Down
20 changes: 15 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -738,11 +738,12 @@ To prevent issues after renaming types use `UnityEngine.Scripting.APIUpdating.Mo
```csharp
[SerializeReference, ReferencePicker(TypeGrouping = TypeGrouping.ByFlatName)]
public ISampleInterface var1;
[SerializeReference, ReferencePicker(ForceUninitializedInstance = true)]
public ISampleInterface var1;
[SerializeReference, ReferencePicker(ParentType = typeof(ClassWithInterface2)]
public ClassWithInterfaceBase var2;

[SerializeReference, ReferencePicker(ForceUninitializedInstance = true)]
public ISampleInterface var3;
```
```csharp
public interface ISampleInterface { }

[Serializable]
Expand Down Expand Up @@ -1029,10 +1030,11 @@ public static class MyEditorUtility
{
static MyEditorUtility()
{
ToolboxEditorToolbar.OnToolbarGui += OnToolbarGui;
ToolboxEditorToolbar.OnToolbarGuiLeft += OnToolbarGuiLeft;
ToolboxEditorToolbar.OnToolbarGuiRight += OnToolbarGuiRight;
}

private static void OnToolbarGui()
private static void OnToolbarGuiLeft()
{
GUILayout.FlexibleSpace();
if (GUILayout.Button("1", Style.commandLeftStyle))
Expand All @@ -1056,6 +1058,14 @@ public static class MyEditorUtility
Debug.Log("5");
}
}

private static void OnToolbarGuiRight()
{
if (GUILayout.Button("1"))
{
Debug.Log("1");
}
}
}
```

Expand Down

0 comments on commit 43bace2

Please sign in to comment.