https://github.com/rimurudev/unity-reactivepropertyconverter
ReactivePropertyConverter for ReactiveProperty -> For small projects, so as not to import UniRx or R3.
https://github.com/rimurudev/unity-reactivepropertyconverter
json json-properties newtonsoft-json r3 react reactive-properties rimuru-dev rimurudev unity unity-data unity-json unity-react unity-reactive-property unity-save
Last synced: 2 months ago
JSON representation
ReactivePropertyConverter for ReactiveProperty -> For small projects, so as not to import UniRx or R3.
- Host: GitHub
- URL: https://github.com/rimurudev/unity-reactivepropertyconverter
- Owner: RimuruDev
- License: mit
- Created: 2024-10-14T08:28:38.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2025-01-16T20:59:13.000Z (4 months ago)
- Last Synced: 2025-01-16T21:20:53.867Z (4 months ago)
- Topics: json, json-properties, newtonsoft-json, r3, react, reactive-properties, rimuru-dev, rimurudev, unity, unity-data, unity-json, unity-react, unity-reactive-property, unity-save
- Language: C#
- Homepage:
- Size: 7.81 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unity -> Reactive Property Converter
ReactivePropertyConverter for [ReactiveProperty](https://github.com/RimuruDev/Unity-ReactiveProperty-Helper)Dependency:
```json
{
"dependencies": {
"com.unity.nuget.newtonsoft-json": "3.2.1",
}
}
```# Example
```cs
[Serializable]
public class HalloweenUserProgress
{
[JsonProperty("Currency")]
[JsonConverter(typeof(ReactivePropertyConverter))]
public ReactiveProperty Currency = new();[JsonProperty("LevelProgress")]
[JsonConverter(typeof(ReactivePropertyConverter))]
public ReactiveProperty> LevelProgress = new();
}
```## Before use `[JsonConverter(typeof(ReactivePropertyConverter))]`
## After use `[JsonConverter(typeof(ReactivePropertyConverter))]`
![]()