How to Use 2D Native Arrays for Use in Unity ECS - Flattening 2D Arrays [Old Version of ECS]

Опубликовано: 30 Сентябрь 2024
на канале: Turbo Makes Games
4,432
82

❗❗ Caution: This video was made with an older version of ECS. See pinned comment for further Details ❗❗
📌 Array Index Conversion Functions: https://pastebin.com/yWL4M65w 📌
💻 My Game Development Setup: https://tmg.dev/GameDevRig 💻
👇 See below for time stamps 👇

0:00 - Intro
0:51 - What does it mean to "flatten" an array?
1:48 - Considerations for flat arrays
2:49 - Demonstrating flattening an array
4:33 - Converting a 2D index to a "flat index"
6:06 - Converting a "flat index" back to a 2D index
7:08 - Final demonstration and wrap-up

Links:
Blog: https://tmg.dev
Twitch:   / turbomakesgames  
Twitter:   / turbomakesgames  
Game Studio: https://homecookedgames.com
GitHub: https://github.com/JohnnyTurbo

Music by: Joakim Karud    / joakimkarud  

📸 My Camera Gear: https://tmg.dev/CameraGear 📸
🎮 Let me know what other topics you want to learn about 🎮

#GameDevelopment #Unity3D #MadeWithUnity

Please 'Like' this video and share it with anyone who is interested in video game development.

Subscribe to the channel for much more independent video game developer related content including tutorials, design breakdowns, industry events, VLOGs, and much more fun stuff!