-
Notifications
You must be signed in to change notification settings - Fork 25
Closed
Description
What do you think about making a reactive store using https://github.com/neuecc/UniRx ?
I'm trying to implement a reactive model of redux. It would be nice to do the following standard movement code outlined in https://ornithoptergames.com/reactiverx-in-unity3d-part-1/ but with a redux pattern:
- Observe input
- Dispatch input and transform to store
- Reducer calculates and stores velocity
- Renderer observes and reacts to change in state.velocity
- CharacterController.Move
I've done everything up until the fourth point. With Unidux as is, I have three options:
- I can store an observable in state;
- I can create a custom observable per state object; or
- Hack UniRx into Unidux.
However, I think it's better you may consider doing this in Store.cs > ForceUpdate()
since I am relatively new to Unity development.
Metadata
Metadata
Assignees
Labels
No labels