ManualDi.Unity3d
Zenject
ManualDi.Unity3d | Zenject | |
---|---|---|
1 | 12 | |
5 | 2,340 | |
- | 1.5% | |
0.0 | 0.0 | |
about 2 years ago | 3 months ago | |
C# | C# | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
ManualDi.Unity3d
-
Dependency injection in unity
Hello everyone! I love unity, it is a great game engine, but I always find myself back to the same architectural hurdles again and again. I used Zenject for several small projects, but I didn't completely like the approach it imposes. In order to improve on what I felt Zenject lacked, decided to make a dependency injection container that fit what I felt was necessary. https://github.com/PereViader/ManualDi.Main (core of the container, just c#) https://github.com/PereViader/ManualDi.Unity3d (extensions to improve usage in unity) As far as I know, dependency injection containers are not a very hot topic around the game dev sphere. Something I think is really not ideal for engineers, as I believe it greatly improves our productivity. What do you think of dependency injection in Unity? What do you think a dependency injection container should have for you to use them in your projects?
Zenject
-
I feel like I'm starting to develop a bad design behaviour. Am I using this because it is actually a good solution no my problem or just it is simple to execute even if not efficient? How do handle these kind of situations and how do you handle storing data you always need
You can try Dependency Injection with Zenject. It’s more complicated than singletons, but has many advantages.
-
Web dev trying to learn game dev, had some questions
I just noticed I forgot to link the resource collection 😅 so here it is: https://procgen.space/resources and while we're on links and I'm on a computer now instead of my phone, here's a link to zenject: https://github.com/modesttree/Zenject
-
Let's talk about the Dependency Injection Pattern! - Discussion
In Unity, there is the Zenject Asset: https://github.com/modesttree/Zenject
-
Best practice to avoid duplicate code
Mhhh I guess you could take a look at a dependency injection framework. https://github.com/modesttree/Zenject
-
It is a good idea to create a manager of managers?
Even better approach is to get rid of singletons with dependency injection. There are several frameworks for this, for example https://github.com/modesttree/Zenject.
-
Dependency injection in unity
Hello everyone! I love unity, it is a great game engine, but I always find myself back to the same architectural hurdles again and again. I used Zenject for several small projects, but I didn't completely like the approach it imposes. In order to improve on what I felt Zenject lacked, decided to make a dependency injection container that fit what I felt was necessary. https://github.com/PereViader/ManualDi.Main (core of the container, just c#) https://github.com/PereViader/ManualDi.Unity3d (extensions to improve usage in unity) As far as I know, dependency injection containers are not a very hot topic around the game dev sphere. Something I think is really not ideal for engineers, as I believe it greatly improves our productivity. What do you think of dependency injection in Unity? What do you think a dependency injection container should have for you to use them in your projects?
-
OMG! Design Patterns Are Awesome!!! If You Don’t Use Them - Start!!!
Zenject can be found here, and is a dependency injection (DI), which is also a design pattern.
-
Why use GetComponent() when I could just use [SerializeField] and link something in the editor?
If we are talking about bigger projects, then you cannot put everything into scene that's for sure. Also, creating a prefab for component that you want to inject is not the best option. Therefore, there are different solutions like Zenject.
- Does anyone else coming from a software background struggle with integrating unity into their design patterns? Are there any particularly good resources for how to write clean code with Unity?
-
How to establish proper communication/information links between various objects without too many dependencies or too many singletons?
Look into dependency injection, like Zenject. https://github.com/modesttree/Zenject
What are some alternatives?
Reflex - Minimal dependency injection framework for Unity
com.unity.netcode.gameobjects - Netcode for GameObjects is a high-level netcode SDK that provides networking capabilities to GameObject/MonoBehaviour workflows within Unity and sits on top of underlying transport layer.
fluid-behavior-tree - Behavior trees for Unity3D projects. Written with a code driven approach on the builder pattern.
di-framework - ↗ A Dependency Injection framework for Unity game engine.
ManualDi.Main - Dependency injection library for C#
Entitas - Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity
fungus - An easy to use Unity 3D library for creating illustrated Interactive Fiction games and more.
GameDevTutorials - Houses various game development tutorials and resources.
UnityCore - A collection of essential game systems for Unity 3D. These generic systems can be applied to any Unity project.
Medicine - Code-driven component injection toolkit for Unity.