Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/scellecs/red
Reactive Toolchain for Unity
https://github.com/scellecs/red
Last synced: 2 months ago
JSON representation
Reactive Toolchain for Unity
- Host: GitHub
- URL: https://github.com/scellecs/red
- Owner: scellecs
- License: mit
- Archived: true
- Created: 2018-12-04T14:45:24.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2019-08-02T17:03:31.000Z (over 5 years ago)
- Last Synced: 2024-10-27T08:03:52.689Z (3 months ago)
- Language: C#
- Homepage:
- Size: 772 KB
- Stars: 10
- Watchers: 5
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Red
Toolchain based on Reactive Extensions for Unity Game Engine.
Extends the capabilities of [UniRx](https://github.com/neuecc/UniRx), allowing you to conveniently resolve dependencies and implement loose coupling between components or modules of your architecture.There are two ways to build architecture.
Simple way:
- **Container** is Service Locator, which can solve global dependencies and make it possible to abandon static classes, singletons.
- **Contract** contains all reactive streams, and helps to make it easy to build MVP for UI and further interaction with business logic.Pure way:
- **DI** manual injections or use Zenject.
- **IntegrationRoot** integrates all systems with reactive streams.
- **Systems** ECS-like business logic.## How to install
### Simple Installation
- Add to your project manifiest by path UnityProject/Packages/manifiest.json `scopedRegistries` like this
```json
{
"dependencies": {
},
"scopedRegistries": [
{
"name": "Unity",
"url": "https://packages.unity.com",
"scopes": [
"com.unity"
]
},
{
"name": "XCrew",
"url": "http://xcrew.dev",
"scopes": [
"com"
]
}
]
}
```
- Open window Package Manager in Unity and install Red
### Manual Installation
- Go to [Releases](https://github.com/X-Crew/Red/releases) and download latest package.
- If your Unity version is lower than 2018.3, open Player Settings in Unity project and change Scripting Runtime Version to `.Net 4.x Equivalent` and install CSharpLatest.unitypackage.
- Import UniRx from [AssetStore](https://assetstore.unity.com/packages/tools/integration/unirx-reactive-extensions-for-unity-17276).
- Import Red.> Note:
> Sometimes the solution is not updated to latest C#.
> Close your IDE and delete all .csproj and .sln from main folder.
> Now open some .cs file. Solution will be recreated with the correct version.## Introduction
First of all, you should be well versed in Rx and specifically in [UniRx](https://github.com/neuecc/UniRx).
Learn this in detail if you still do not know it.## Code of Conduct
[Contributor Covenant Code of Conduct](CODE_OF_CONDUCT.md)
## License
[MIT License](LICENSE)