Design Patterns & SOLID | Coding Sample Project View on Asset Store (opens in new tab)

Package details

Latest version
1.1
Last updated
First released
Unity version
6000.0.11 or later
Package size
30.9 MB
Files
903
Favorites
679
Views in the past week
2,975

Price tracking

Last checked
Tracked since
Lowest recorded
Free on

Keywords

Design Patterns & SOLID | Coding Sample Project

by Unity Technologies (opens in new tab)

3.7 / 5 · 20 ratings

Ratings by stars
Number of ratings for each star rating
5 stars 12
4 stars 2
3 stars 0
2 stars 0
1 star 6

This official Unity 6 demo demonstrates several easy-to-follow popular design patterns, as well as core programming concepts like KISS and DRY you can use to improve your code.

Price Free

Get it free on Asset Store (opens in new tab)

Affiliate link · Purchases support this site

Price history

Last 6 months

USD
Price history for Design Patterns & SOLID | Coding Sample Project, 6 months Current Free; lowest Free; highest Free in this period. $0 Jun Jul Aug Sep Oct Nov

Asset preview

1 / 7

Design Patterns & SOLID | Coding Sample Project screenshot 1

Design Patterns & SOLID | Coding Sample Project screenshot 1

About this asset

The Game Programming Patterns sample project demonstrates how common object-oriented programming principles and design patterns can be applied in Unity projects.

The included examples cover approaches such as SOLID, object pooling, state machines, commands, observers, and architectural patterns to help you explore ways of creating cleaner, more modular, and maintainable codebases.

The project is designed to be used alongside Unity’s Level up your code with game programming patterns e-book, which provides a deeper explanation of each pattern and its implementation.

SOLID Principles:

  • Single-responsibility principle
  • Open-closed principle
  • Liskov substitution principle
  • Interface segregation principle
  • Dependency inversion principle

Design Patterns:

  • Factory
  • Object Pool
  • MVP
  • MVVM
  • Singleton
  • Strategy
  • Command
  • Flyweight
  • State
  • Dirty Flag
  • Observer

Download the e-book: Level up your code with game programming patterns

Additional Resources:

Compatibility:

This project requires Unity 6 (6000.0.5f1 or newer) and is an updated version of the original Game Programming Patterns samples on GitHub

Note:

The patterns and architectural approaches shown in these samples are examples rather than strict recommendations. The best architecture will depend on the needs of your project, team, and workflow. Use these examples as a starting point when developing your own coding guidelines and systems.

From the publisher's Asset Store listing.

Compatibility

Render pipelines supported in each Unity version
Unity version Built-in URP HDRP
6000.0.11f1 Not listed Compatible Not listed

As listed on the Asset Store.