CubeSpawnerSystem

CubeSpawnerSystem is an ISystem that runs after CubeSpawner exists on an entity (usually from baking CubeSpawnerAuthoring). It reads Prefab and Amount, computes a cube root side length, triple nested loops walk a 3D index (x,y,z), and each slot gets Instantiate plus LocalTransform at new float3(x,y,z) * 1.5f until spawnedCount reaches Amount. Then it disables itself so you do not spawn every frame.

Topics in CubeSpawnerSystem

  1. Getting started
  2. Install dependencies
  3. Subscenes
  4. Authoring
  5. Struct
  6. MonoBehaviour
  7. IComponentData
  8. Baker<T>
  9. Unity.Entities
  10. GetEntity()
  11. CubeSpawnerSystem
  12. ISystem
  13. Unity.Transforms
  14. Unity.Mathematics
  15. Non-DOTS Test

All 16 topics in the Learn DOTS and ECS Roadmap