Level up your code with design patterns and SOLID
Unity Technologies
$0.0
Date |
Price |
---|---|
日時 |
価格($) |
07/23(2024) |
0.0 |
11/24(2024) |
0.0 |
Jump AssetStore
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.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 flagObserverDownload the full e-book here and learn more in the following articles:Create modular and maintainable code with the Observer patternDevelop a modular, flexible codebase with the State programming patternUse object pooling to boost performance of C# scripts in UnityBuild a modular codebase with MVC and MVP programming patternsHow to use the factory pattern for object creation at runtimeUse the command pattern for flexible and extensible game systemsNote: This project requires Unity 6 preview (6000.0.5f1 or newer) and is an updated version of our original samples available on GithubPlease 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.We recommend that you open a new empty project to view this sample project because it imports assets into the root/Assets folder.The project runs in Unity 6 preview (6000.0.9f1) or newer versions.