# QianMo/Unity-Design-Pattern

:tea:  All Gang of Four Design Patterns written in Unity C# with many examples. And some Game Programming Patterns  written in Unity C#. | 各种设计模式的Unity3D C#版本实现

Repository: https://github.com/QianMo/Unity-Design-Pattern
Canonical: https://ross.abutalabs.com/products/unity-design-pattern
Language: C#
License Family: other
Topics: unity, design-pattern, design-patterns, unity3d, unity-design-pattern, csharp-design-patterns, game-development, game-programming-pattern, game-programming, csharp-resources, factory-pattern, mediator-pattern, visitor-pattern, singleton-pattern, bridge-pattern, pool-pattern, iterator-pattern, facade-pattern, memento-pattern, command-pattern
Last push: 2020-02-06T05:00:57+00:00

## Health v2 (maintenance only)
Score: 32/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 3613, "days_push": 2400, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 4681, forks 1022 (observed 2026-08-28T04:08:56.873466+00:00)

## What it is
A Unity3D C# repository implementing all 23 Gang of Four design patterns plus selected Game Programming Patterns, each with structural implementations, example scenes, and diagrams. It serves as a reference and learning resource for applying classic software design patterns in Unity game development.

## Use cases
- learn design patterns in Unity C#
- see examples of the singleton or observer pattern in Unity
- study game programming patterns like object pool and game loop
- find reference implementations of all 23 Gang of Four patterns
- understand how to structure Unity projects using design patterns

## When to choose
- you are learning or teaching design patterns in the context of Unity game development
- you want runnable Unity scenes demonstrating each pattern's structure and real-world usage
- you need Unity implementations of patterns from Game Programming Patterns

## When to avoid
- you need a production-ready pattern library to drop into your project
- you work outside Unity or in a language other than C#
- you need actively maintained code with a license and recent updates

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: developer-tools, documentation
- domain: tutorials, programming-languages
- platform: game-engine, cross-platform
- tags: design-patterns, unity3d, csharp, gang-of-four, game-programming-patterns, educational, game-development

## Member repositories
- QianMo/Unity-Design-Pattern (main) score 32

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:56.873466+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:19:19.494119+00:00, confidence not recorded.
  - readme: https://github.com/QianMo/Unity-Design-Pattern (fetched 2026-08-28T04:08:56.873466+00:00, sha ce1629de4b5b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
