Skip to content

Commit

Permalink
Updated changelog and readme.
Browse files Browse the repository at this point in the history
  • Loading branch information
Hertzole committed Dec 8, 2020
1 parent 7cfa8c7 commit 9ce6549
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@
### Changed
- Moved settings asset into a Packages folder in ProjectSettings to be consistent with other packages.

### Fixed
- Fixed LogCalled not working on static methods.
- Fixed LogCalled failing due to index out of bounds exceptions.

## [0.2.0-preview] - 2020-11-04
### Added
- LogCalled attribute to make a log message appear when calling a method/property.
Expand Down
15 changes: 15 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,20 @@ public void MyMethod(int para1, string para2)
}
```

### Find Property
**Applies to fields and properties**

Find property will automatically find serialized properties for you and make sure they exist. By default it searches with the same name as the field/property in your editor script, but a custom name/path can be specified to make it search with another name or within another serialized property.

Usage:
```cs
[FindProperty]
private SerializedProperty myProperty; // Will look for a property called 'myProperty'.
[FindProperty("customName")]
private SerializedProperty notMyName; // Will look for a property called 'customName'.
[FindProperty("firstProperty/secondProperty")]
private SerializedProperty nested; // Will first look for a property called 'firstProperty' and then 'secondProperty' on the first property.
```

## License
MIT - Basically do whatever, I'm just not liable if it causes any damages.

0 comments on commit 9ce6549

Please sign in to comment.