#Generating Prefabs Dynamically based on Index in DOTS

1 messages · Page 1 of 1 (latest)

fallen cipher
#

I've got a question about dynamically generating prefabs based on their index. I've got a bunch of prefabs, and each one has a unique index. How can I bake these entities in DOTS, so that I can efficiently access them during runtime using their corresponding index?

placid granite
#

assuming indices start from 0 - you can access by index directly

#

otherwise you can in runtime convert it to HashMap