ttayfunylmz / Unity_DesignPatterns

Design Patterns for Unity.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

DesignPatterns

Design Pattern examples in Unity that I'm explanining on my Youtube channel live.

You can access the videos through this link.

What's in this Project?

  • In this project, you can find well-coded and extensively commented Unity examples of Design Patterns. Additionally, you can watch "Design Patterns with Unity" videos on my YouTube channel.

Design Patterns We're Going to Examine

You can click the PATTERN'S NAME and watch the Turkish Tutorial made by me.

Singleton is a creational design pattern that ensures only a single instance of a class exists throughout an application and provides access to that instance from anywhere in the codebase.
DesignPatterns
- Object Pooling is a creational design pattern that pre-instantiates all the objects you'll need at any specific moment before gameplay.
DesignPatterns
- State Pattern is used in computer programming to encapsulate varying behavior for the same object, based on its internal state. This can be a cleaner way for an object to change its behavior at runtime without resorting to conditional statements and thus improve maintainability.
DesignPatterns
- Flyweight Pattern describes how to share objects to allow their use at fine granularity without prohibitive cost.
DesignPatterns
- Factory Pattern is a creational pattern that provides an interface for creating objects but allows subclasses to decide which class to instantiate.
DesignPatterns
- Observer Pattern is a behavioral design pattern that lets you define a subscription mechanism to notify multiple objects about any events that happen to the object they’re observing.
DesignPatterns
- Command Pattern is a behavioral design pattern in which an object is used to encapsulate all information needed to perform an action or trigger an event at a later time.
DesignPatterns
- Strategy Pattern is a behavioral design pattern that lets you define a family of algorithms, put each of them into a separate class, and make their objects interchangeable.
DesignPatterns
- Decorator Pattern is a structural design pattern that lets you attach new behaviors to objects by placing these objects inside special wrapper objects that contain the behaviors.
DesignPatterns
- MVP Pattern, is using the Model, View, and Presenter components to separate the data part of the application (Model), the user interface (View), and the communication between these two components (Presenter). It is an architectural design pattern.
DesignPatterns
- An Event Bus is a communication system in software architecture that enables Publish/Subscribe messaging, allowing different components to interact without needing to be aware of each other.
DesignPatterns

WARNING!

If you are a COMPLETE BEGINNER to Unity and C#, "Design Patterns" might be hard to understand. I prefer you watch this "Flappy Bird" series.

Unity Version

  • We used Unity version 2022.3.3f1 for this project. However, you can open it with any Unity version since it is prepared just for learning purposes.

How To Download

  • You can easily click the 'Code' button (displayed as a green button) and then click 'Download ZIP'. Afterward, extract the ZIP file and open it with Unity

Support

You can check out my channel "SkinnyDev" for more Turkish Unity tutorials. Don't forget to join our Discord channel where you can find a friendly community with tons of people related to game development.

About

Design Patterns for Unity.

License:MIT License


Languages

Language:C# 61.8%Language:ShaderLab 32.5%Language:HLSL 5.7%