Skip to content

Commit

Permalink
readme and version
Browse files Browse the repository at this point in the history
  • Loading branch information
TylerTemp committed Nov 26, 2024
1 parent 70df66f commit 29dafe1
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 8 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 3.5.2 ##

1. Fix multiple auto getters on a same field will cause partly filled values.
2. Add `bool delayedSearch = false` for `ListDrawerSettings` to delay the search until you hit enter or blur the search field

## 3.5.1 ##

1. Performance improvement, mainly for UI Toolkit, and partly for IMGUI, [#98](https://github.com/TylerTemp/SaintsField/issues/98)
Expand Down
10 changes: 4 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,10 @@ namespace: `SaintsField`
### Change Log ###
**3.5.1**
**3.5.2**
1. Performance improvement, mainly for UI Toolkit, and partly for IMGUI, [#98](https://github.com/TylerTemp/SaintsField/issues/98)
2. `SaintsFieldConfig` add `delay` and `update interval` for auto getters so you can have better control about it.
It's recommended to set `delay` to 100 and `update interval` 0 (means disabled), because usually you'll not need to frequently check the resources. Everytime clicking on the target will do an update, which is enough for most cases.
1. Fix multiple auto getters on a same field will cause partly filled values.
2. Add `bool delayedSearch = false` for `ListDrawerSettings` to delay the search until you hit enter or blur the search field
See [the full change log](https://github.com/TylerTemp/SaintsField/blob/master/CHANGELOG.md).
Expand Down Expand Up @@ -1128,6 +1126,7 @@ Parameters:
* `bool searchable = false`: allow search in the list/array
* `int numberOfItemsPerPage = 0`: how many items per page by default. `<=0` means no paging
* `bool delayedSearch = false`: when `true`, delay the search until you hit enter or blur the search field
```csharp
// Please ensure you already have SaintsEditor enabled in your project before trying this example
Expand All @@ -1150,7 +1149,6 @@ public MyData[] myDataArr;
The first input is where you can search. The next input can adjust how many items per page. The last part is the paging.
#### `ShowInInspector` ####
> [!IMPORTANT]
Expand Down
2 changes: 1 addition & 1 deletion Runtime/Playa/ListDrawerSettingsAttribute.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ public class ListDrawerSettingsAttribute: Attribute, IPlayaAttribute

public ListDrawerSettingsAttribute(bool searchable = false, int numberOfItemsPerPage = 0, bool delayedSearch = false)
{
Searchable = searchable;
NumberOfItemsPerPage = numberOfItemsPerPage;
Delayed = delayedSearch;
Searchable = Delayed || searchable;
}

}
Expand Down
1 change: 1 addition & 0 deletions Samples~/Scripts/SaintsEditor/ListDrawerSettingsExample.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,6 @@ public struct MyData


[ListDrawerSettings(searchable: true), GetScriptableObject, Expandable] public Scriptable[] searchScriptable;
[ListDrawerSettings(searchable: true, delayedSearch: true), GetScriptableObject, Expandable] public Scriptable[] searchDelayScriptable;
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "today.comes.saintsfield",
"version": "3.5.1",
"version": "3.5.2",
"displayName": "SaintsField",
"description": "A Unity plugin for field in inspector",
"unity": "2019.1",
Expand Down

0 comments on commit 29dafe1

Please sign in to comment.