File tree Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Expand file tree Collapse file tree 1 file changed +24
-1
lines changed Original file line number Diff line number Diff line change 1- # Unity-ReactivePropertyConverter
1+ # Unity -> Reactive Property Converter
22ReactivePropertyConverter 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 " >
You can’t perform that action at this time.
0 commit comments