An open API service indexing awesome lists of open source software.

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.

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))]`

image

## After use `[JsonConverter(typeof(ReactivePropertyConverter))]`

image