Unity…it’s time to get STRANGE!
Today, Third Motion, Inc. open sourced StrangeIoC, a super-lightweight and highly extensible Inversion-of-Control micro-framework, written specifically for C# and Unity.
Site: StrangeIoC
GitHub repo: GitHub - thirdmotion/strangeioc
Submission to Unity Store pending (will be free).
KEY FEATURES- Dependency Injection
- Shared pub/sub system
- View mediation
- Battle-tested architecture
- Core binding framework
- Multiple, modular contexts
- Comes with two example projects to get you going
KEY BENEFITS- Decoupled, modular code.
- Rapid development.
- Good for individuals, great for teams!
- Works great with Unity MonoDevelop. Also works great without them.
Dependency Injection
Decouple all your class dependencies and write cleaner, modular code with a highly optimized Reflection/Injection system.
Pub/sub system
Each context features an EventDispatcher reachable by any point in code.
View mediation
Insulate your app from the chaos often present in views. Mediation allows clean separation of Views from Controllers and Models with no loss of capability.
Battle-tested architecture
Strange’s architecture is based on the popular RobotLegs micro-framework. This architecture is well founded, highly proven, and lightly urges responsible development that works great for individuals or teams.
Core binding framework
The core of Strange is a simple, highly extensible Binder class. Extend the Binder to create decoupling models that suit your situation. Every component in Strange is an extension of Binder, so there are already many examples to follow.
Multiple, modular contexts
Modular contexts allow you to spin off portions of your project to different teams, then agree on an API and plug-and-play. This simplifies development and decouples whole components of the app for later re-use.
No joke: this will revolutionize your development process.