https://github.com/rimurudev/unity-reactiveproperty-helper
Unity Simple Reactive Property -> For small projects, so as not to import UniRx or R3
https://github.com/rimurudev/unity-reactiveproperty-helper
r3 reactive reactive-fields reactive-properties rimuru-dev rimurudev unity-react unity-reactie-property
Last synced: 28 days ago
JSON representation
Unity Simple Reactive Property -> For small projects, so as not to import UniRx or R3
- Host: GitHub
- URL: https://github.com/rimurudev/unity-reactiveproperty-helper
- Owner: RimuruDev
- License: mit
- Created: 2024-08-05T11:53:09.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-16T21:05:28.000Z (9 months ago)
- Last Synced: 2025-06-11T00:44:54.070Z (4 months ago)
- Topics: r3, reactive, reactive-fields, reactive-properties, rimuru-dev, rimurudev, unity-react, unity-reactie-property
- Language: C#
- Homepage:
- Size: 10.7 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Unity ReactiveProperty Helper
# How to use
```csharp
[Serializable]
public class CurrencyData
{
public ReactiveProperty SoftCurrency { get; private set; }
public ReactiveProperty HardCurrency { get; private set; }public CurrencyData()
{
SoftCurrency = new ReactiveProperty();
HardCurrency = new ReactiveProperty();
}
}
```
# Newtonsoft.Json```csharp
[Serializable]
public class CurrencyStorage
{
[JsonProperty] public ReactiveProperty SoftCurrency { get; private set; } = new();[JsonProperty] public ReactiveProperty HardCurrency { get; private set; } = new();
}
```