The Observer Pattern:
Software Design Patterns are like a manual on how to write good code, whether you’re using Blueprints or C++, knowing good software practices is a MUST!
I hope this first video in the series gives you a good intro on what design patterns are and how the observer design pattern can be used.
This will be done through the use of « Event Dispatchers ». Event dispatchers in unreal engine use delegates, which are an implementation of the pub/sub (observer) pattern.
Through blueprints, event dispatchers are available, but have certain limitations that will be touched upon in this series
Download the project files and support my channel on Patreon
https://www.patreon.com/Alizoh
Join my Discord server to chat and mingle with the community
https://discord.gg/AEnM4wvYzN
Additional Resources:
https://refactoring.guru/design-patterns/observer
https://gameprogrammingpatterns.com/observer.html
https://docs.unrealengine.com/5.2/en-US/delegates-and-lamba-functions-in-unreal-engine/
Chapters:
00:00 The Problem
00:24 Background Context
00:49 The Mistake
01:38 The Observer Pattern
02:49 The Publisher
04:05 The First Subscriber
07:11 The Second Subscriber
10:19 Summary
11:00 The Benefits
11:40 Coming Soon
About me:
I’ve been learning game development for a few years now, I have a background in software engineering, and I also have a background in education, so being able to combine my love of gaming, software engineering and education is the best way to spend my time.
I am currently working on a few unreal engine games as a hobby, but I am also trying to build a community, thus I am creating YouTube tutorials to find others who are interested in game development and design.
#unrealengine5 #observerPattern #tutorial #unrealengine #ue5 #gamedev #softwaredesign #software #designpatterns #cleancode
Voir sur youtube