#UnityTips Did you ever need a const dictionary?
According to the C# specification, switch-case tables are compiled to constant hash jump tables. 🤔🤨
So it looks ugly but it's basically a compile time dictionary! 😆
(For the example we used an enum)#coding #indiedev #gamedev pic.twitter.com/sldZDrBja4— Binary Impact (@BinaryImpactG) April 19, 2022