Is there a good way to store a lookup table in an IComponentData?
Right now I’m using two DynamicBuffers:
- An array of keys
- An array of corresponding values
The code must iterate over the keys in the first DB, to find the index of the correct value in the second DB.
Very old school. Not efficient, but it works.
Would there be a better way to do this in Unity’s ECS?