UnityCore
Zenject
Our great sponsors
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.
UnityCore
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?
Lasp - Low-latency Audio Signal Processing plugin for Unity
Reflex - Minimal dependency injection framework for Unity
raycast-bouncing-bullets - Learn how to use Vector3.Reflect to upgrade your Raycast/Hitscan bullets so they can ricochet or bounce off any objects!
fluid-behavior-tree - Behavior trees for Unity3D projects. Written with a code driven approach on the builder pattern.
com.unity.multiplayer.samples.coop - A small-scale cooperative game sample built on the new, Unity networking framework to teach developers about creating a similar multiplayer game.
di-framework - ↗ A Dependency Injection framework for Unity game engine.
Hacker-themed-screen - A procedural hacked-themed screen that can be used in several types of video games in Unity3D
Entitas - Entitas is a super fast Entity Component System (ECS) Framework specifically made for C# and Unity
SS3D - Space Station 3D, another remake of SS13, but with an extra D.
fungus - An easy to use Unity 3D library for creating illustrated Interactive Fiction games and more.
flipon-tiny - An open-source minimalist but playable version of Flipon
GameDevTutorials - Houses various game development tutorials and resources.