So I am trying to learn ECS by making a simple game. I would like to make a spawner that randomly spawn objects. I was looking at the ECS examples when I saw how to spawn entities via a job (SpawnerSystem_FromEntity.cs).
Is there a way to send an array of entities to a job? If so, how?
Yep, look into NativeArray 
1 Like
@siggigg Thanks. I have another question. I need to load my data async using Addressables. I want to build my native array after those prefabs are loaded. Should I not add the component that is associated with my job until this array is loaded? Is there a better approach/design pattern than this?