Using Enums and BitFlags in Unreal Game Development

2 years ago
4

Discusses what enums are, how they work and why you might want to use them., with an overview of Bitflag enums, and has a couple of examples in Blueprints and C++ using these things.

Chat about gamedev on Discord:
https://discord.gg/jjy2aJ3hj9

Links
Wikipedia Article ‘Power of Two’: https://en.wikipedia.org/wiki/Power_of_two
Wikipedia Article ‘Binary number’: https://en.wikipedia.org/wiki/Binary_number

Chapters
00:00 Introduction
00:19 What are Enums?
02:58 Enums are just numbers
04:02 Zero value convention
04:20 Enum Specifiers
05:35 Summary of basic enums
06:01 Bitflag Enums
06:26 Binary
09:08 Bitflags work with Binary
11:39 Example 1 - Currency Conversion Blueprints
15:05 Example 2 - Player Injury Locations C++
15:27 Specifying Bitflag Values in C++
16:46 Example 2 - Continued
18:29 Common Bitflag Operations
19:58 Summary

Loading comments...