Skip to content
This repository has been archived by the owner on Feb 16, 2024. It is now read-only.

Commit

Permalink
fix ReadMe
Browse files Browse the repository at this point in the history
  • Loading branch information
neuecc committed Mar 9, 2015
1 parent 02e43d5 commit 3f2cd7c
Show file tree
Hide file tree
Showing 3 changed files with 220 additions and 39 deletions.
9 changes: 9 additions & 0 deletions Assets/UniRx/ReadMe.txt
Original file line number Diff line number Diff line change
Expand Up @@ -546,6 +546,15 @@ enemy.IsDead.Where(isDead => isDead == true)

You can combine ReactiveProperty, ReactiveCollection and UnityEvent.AsObservable. All ui elements is observable.

Generic ReactiveProeprty is not inspecatble but UniRx provides specialized ReactiveProperty for use in inspector. You can use Int/LongReactiveProperty, Float/DoubleReactiveProperty, StringReactiveProperty, etc for show and editable in inspector. If you want to use Enum's ReactiveProperty, you can make custom ReactiveProperty[T] for inspecatable.

`InspectorDisplayAttribute` helps readability in inspector.

```csharp
[InspectorDisplay]
public IntReactiveProperty IntRxProp = new IntReactiveProperty();
```

ObservableUIBehaviour
---
In `UniRx.UI` namespace have some observable classes. `ObservbaleButton`, `ObservableImage`, `ObservableInputField`, `ObservableSelectable`, `ObservableSlider`, `ObservableText`, `ObservableToggle`, `ObservableUIBehaviour`, `ObservableEventTrigger` are conveting to callback to IObservable(note: other than this `UniRx` namespace has similar class `ObservableStateMachineBehaviour`).
Expand Down
Loading

0 comments on commit 3f2cd7c

Please sign in to comment.