Data Structures For Game Devs: HashSets | Unity Tutorial (Part 2)
https://www.youtube.com/watc...This video teaches you all about C# HashSets for your Unity game. It's part of a guide/tutorial series on data structures for Unity game developers, with lots of examples and a focus on using them to make your dev life easier.
Full Playlist: https://youtube.com/playlist?list=PL67lcUvJcLZf1o5FsRACq2H_LQeo33tgr
Part 1 (Arrays, Lists & Fundamentals): https://youtu.be/uWI3JEBRMiA
Part 2 (HashSets): You're here!
Part 3 (Dictionaries): https://youtu.be/vditeSiJdSY
Part 4 (Queues & Stacks): https://youtu.be/jlPgg8TBoTc
These are my first tutorial-style videos on the channel, so let me know what you think!
Say hi: https://twitter.com/AnniIsGame
Gameplay:
- Deep Rock Galactic
- The Legend of Zelda: Breath of the Wild
- Age of Empires
Chapters:
0:00 Intro
0:19 What’s a HashSet?
0:45 Example 1
1:37 HashSet vs. List
2:13 Example 2
2:43 Lookup Performance
3:15 Internal Implementation
3:44 Intersection & Union
4:24 Example 3
5:03 What HashSets Can’t Do
5:46 Your Own Use Cases!