From 9ce654910b2abf9074f67f1139939a27b7f798c2 Mon Sep 17 00:00:00 2001 From: Hertzole Date: Tue, 8 Dec 2020 01:41:12 +0100 Subject: [PATCH] Updated changelog and readme. --- CHANGELOG.md | 4 ++++ README.md | 15 +++++++++++++++ 2 files changed, 19 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index b86657e..b9aabc8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. diff --git a/README.md b/README.md index ff490ac..708fad4 100644 --- a/README.md +++ b/README.md @@ -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.