Skip to content

Commit 0259925

Browse files
authored
Update README.md
1 parent c21b9a5 commit 0259925

File tree

1 file changed

+24
-1
lines changed

1 file changed

+24
-1
lines changed

README.md

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,26 @@
1-
# Unity-ReactivePropertyConverter
1+
# Unity -> Reactive Property Converter
22
ReactivePropertyConverter for [ReactiveProperty](https://github.com/RimuruDev/Unity-ReactiveProperty-Helper)
33

4+
# Example
5+
6+
```cs
7+
[Serializable]
8+
public class HalloweenUserProgress
9+
{
10+
[JsonProperty("Currency")]
11+
[JsonConverter(typeof(ReactivePropertyConverter))]
12+
public ReactiveProperty<int> Currency = new();
13+
14+
[JsonProperty("LevelProgress")]
15+
[JsonConverter(typeof(ReactivePropertyConverter))]
16+
public ReactiveProperty<List<LevelProgress>> LevelProgress = new();
17+
}
18+
```
19+
20+
## Before use `[JsonConverter(typeof(ReactivePropertyConverter))]`
21+
22+
<img width="306" alt="image" src="https://github.com/user-attachments/assets/08a23669-4f23-412f-b5f1-4b2235c91314">
23+
24+
## After use `[JsonConverter(typeof(ReactivePropertyConverter))]`
25+
26+
<img width="230" alt="image" src="https://github.com/user-attachments/assets/321edaee-8b5a-4012-b9e0-cec0ff098ab0">

0 commit comments

Comments
 (0)