{"repo":"Habrador/Unity-Programming-Patterns","free":true,"listed":false,"github":"https://github.com/Habrador/Unity-Programming-Patterns","clone":"git clone https://github.com/Habrador/Unity-Programming-Patterns.git","description":"Implementations of programming design patterns in Unity with examples in C# when to use them.","language":"C#","stars":2092,"topics":["design-patterns","observer-pattern","state-pattern","unity","unity3d","prototype-pattern","flyweight-pattern","type-object-pattern","subclass-sandbox-pattern","object-pool"],"license":"MIT","category":"game-templates","readme_excerpt":"# Game programming patterns in Unity Here you can find a collection of programming (design) patterns in Unity, mainly from the book Game Programming Patterns. These are very useful to better organize your Unity project as it grows because they capture best practices and solutions to commonly occuring problems. You don't have to use them - you should see them as tools in your toolbox. You can also experiment with how they are implemented to fit your specific needs. Some patterns, such as Update, Game Loop, Component, are already built-in into Unity so you are already using them! Programming patterns can be divided into the following groups: 1. Architectural patterns. One example is the MVC (Model-View-Controller). 2. Design patterns. Are more specific than architectural patterns, such as the Singleton. 3. Anti-patterns. Are a collection of patterns programmers are using to solve problems even though they shouldn't use them because they are ineffective solutions. One example is a \"God object,\" most likely called GameController where you collect everything you might need to make the game work. The problem with such as class is that it will grow in size, which will make it more difficult to maintain, and it will also be difficult to debug because the code doesn't belong together. Patterns from the book Game Programming Patterns: 1. Command 2. Flyweight 3. Observer 4. Prototype 5. Singleton 6. State 7. Double Buffer 8. Game Loop 9. Update Method 10. Bytecode 11. Subclass Sandbox 1","default_branch":null,"files":null,"tree":[],"storefront":"/r/Habrador","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/Habrador/Unity-Programming-Patterns/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}