# Naphier/unity-design-patterns

Examples of programming design patterns in Unity C#

Repository: https://github.com/Naphier/unity-design-patterns
Canonical: https://ross.abutalabs.com/products/unity-design-patterns
Language: C#
License: CC0-1.0
License Family: permissive
Last push: 2025-05-24T21:12:15+00:00

## Health v2 (maintenance only)
Score: 43/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 23, release rhythm 35, longevity 100
- inputs: {"age_days": 3989, "days_push": 466, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1198, forks 163 (observed 2026-08-28T04:03:57.734693+00:00)

## What it is
A collection of example implementations of classic software design patterns written in C# for Unity3D. Each pattern includes a structural reference and a real-world Unity scene demonstrating its use.

## Use cases
- learn design patterns in Unity C#
- see how the command pattern works in a game engine
- find example implementations of factory or builder patterns
- study game programming patterns with runnable Unity scenes
- reference material for structuring Unity game code

## When to choose
- you are learning or teaching design patterns in a Unity3D context
- you want runnable example scenes rather than abstract UML diagrams
- you need C# pattern implementations adapted to MonoBehaviour conventions

## When to avoid
- you need a production-ready pattern library to drop into your project
- you need patterns not yet covered, such as Observer, Singleton, or State
- you work outside Unity or in a language other than C#

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: developer-tools, documentation
- domain: tutorials, programming-languages
- platform: game-engine, cpp
- tags: design-patterns, unity3d, c-sharp, educational-examples, software-architecture, game-development

## Member repositories
- Naphier/unity-design-patterns (main) score 43

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:57.734693+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-30T06:21:08.256761+00:00, confidence not recorded.
  - readme: https://github.com/Naphier/unity-design-patterns (fetched 2026-08-28T04:03:57.734693+00:00, sha 3022539fe3bb)
- Data as of 2026-08-30T08:39:29.467469+00:00.
