In this video, you’ll learn about how to use the factory design pattern in your Unity project. This pattern can be used to build an interface for creating objects in a superclass, while allowing subclasses to alter the type of objects that will be created.
⭐ Learn more about programming design patterns this e-book: https://on.unity.com/41DAHsd
⭐ Watch the other videos part of the Game Programming Patterns series: https://on.unity.com/495xdB8
Timestamp:
[
0:00] Intro
[
0:20] Power-ups in a game level and the factory design pattern
[
1:00] How the factory design pattern works
[
2:23] Breakdown of the factory design pattern in action
[
5:05] The example covered in the e-book
[
5:24] Using a dictionary with the factory design pattern
#unity #unity3d #gameprogramming #unitygamedev #gamedev #gamedesign