Unity
Design Patterns & SOLID | Coding Sample Project
FREE
Rated 4.0/5 from 20 ratings on Unity.
Price history
Recorded standalone sale prices and the latest available store price, in USD. Historical dots use the sale start date and its recorded offer price. Prices can change during a sale; this is not a daily price log. Bundle prices and upcoming offers are excluded. History covers up to the 100 most recent recorded offers.
Lowest recorded standalone price in this history: FREE. The latest store price is FREE, matching the lowest recorded price shown here.
View 1 recorded price
| Sale start / price check | Price | Observation |
|---|---|---|
| FREE | Latest store price |
About Design Patterns & SOLID | Coding Sample Project
- Tools, Systems & Learning > Learning & Tutorials
We created this collection of samples to demonstrate how you can implement some of the common design patterns and principles from object-oriented programming, such as SOLID and KISS, into your Unity game development.
A companion resource to the project, the e-book Level up your code with game programming patterns, provides an in-depth explanation of each of the patterns implemented in the samples.
By implementing some of the techniques and game programming design patterns from the samples and e-book in your Unity project, you can more efficiently build and maintain a clean, organized, and readable codebase, which in turn, creates a solid foundation for scaling your game, development team, and business.
Here's a rundown of the patterns included in the project:
SOLID Principles:
Single-responsibility principleOpen-closed principleLiskov substitutionInterface segregationDependency inversionDesign Patterns:
Factory patternObject poolingMVPMVVMSingletonStrategyCommandFlyweightStateDirty flagObserverNote: This project requires Unity 6 preview (6000.0.5f1 or newer) and is an updated version of our original samples available on Github
Please keep in mind that the guide and these examples are based on subjective opinion; they are not recommendations that promise a particular outcome, but are examples only. A good code architectural solution is one that fits your needs and covers the majority of the day-to-day use cases in your game development. Our intention is for you to use the guide and examples as a starting point for creating your own guidelines.
A companion resource to the project, the e-book Level up your code with game programming patterns, provides an in-depth explanation of each of the patterns implemented in the samples.
By implementing some of the techniques and game programming design patterns from the samples and e-book in your Unity project, you can more efficiently build and maintain a clean, organized, and readable codebase, which in turn, creates a solid foundation for scaling your game, development team, and business.
Here's a rundown of the patterns included in the project:
SOLID Principles:
Single-responsibility principleOpen-closed principleLiskov substitutionInterface segregationDependency inversionDesign Patterns:
Factory patternObject poolingMVPMVVMSingletonStrategyCommandFlyweightStateDirty flagObserverNote: This project requires Unity 6 preview (6000.0.5f1 or newer) and is an updated version of our original samples available on Github
Please keep in mind that the guide and these examples are based on subjective opinion; they are not recommendations that promise a particular outcome, but are examples only. A good code architectural solution is one that fits your needs and covers the majority of the day-to-day use cases in your game development. Our intention is for you to use the guide and examples as a starting point for creating your own guidelines.