Introducing the Command Design Pattern in Unreal Engine 4

Опубликовано: 11 Апрель 2026
на канале: Paul Gestwicki
5,646
189

This video provides an introduction to the Command Design Pattern, which is a classic in object-oriented software development. The example is inspired by a project from my game production class: a shop that sells items to adventurers. I explain in the video how the "Undo" operation is a great motivation to migrate an existing design toward the Command pattern. This is done in Blueprint, and at the end, I also show how I would accomplish the same thing in C++.

This video is sponsored in part by an Epic MegaGrant, and I am grateful for the support.

Here are references for some of the quotations and ideas mentioned in the video:

Christopher Alexander (1977). A Pattern Language: Towns, Building, Construction. Oxford University Press.

Erich Gamma, Richard Helm, Ralph Johnson, and John Vlissides (1994). Design Patterns: Elements of Reusable Object-Oriented Software. Addison-Wesley.

UE4 Programming Subsystems documentation:
https://docs.unrealengine.com/en-US/P...

UE4 Overview of Actors, Objects, and Components:
https://docs.unrealengine.com/en-US/P...