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
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.
Affiliate link · Purchases support this site
Price history
Last 6 months
USDAsset preview
1 / 7
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:
- Create modular and maintainable code with the Observer pattern
- Develop a modular, flexible codebase with the State programming pattern
- Use object pooling to boost performance of C# scripts in Unity
- Build a modular codebase with MVC and MVP programming patterns
- How to use the Factory pattern for object creation at runtime
- Use the Command pattern for flexible and extensible game systems
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
| Unity version | Built-in | URP | HDRP |
|---|---|---|---|
| 6000.0.11f1 | Not listed | Compatible | Not listed |
As listed on the Asset Store.