Spawner example
Implement an entity component system (ECS) example that creates a spawner which reads and writes component data, and instantiates entities at runtime.
The topics in this section of the documentation are workflow steps and you should read them in order.
Topic | Description |
---|---|
Create the subscene for the spawner example | Create a subscene to contain the entities for the spawner example. |
Create a component for the spawner example | Create the component to store data for the spawner example. |
Create the spawner entity for the spawner example | Convert GameObjects into entities and attach components to the entities. |
Create the system for the spawner example | Create a system to provide logic for the spawner example. |
Optimize the system for the spawner example | Convert the synchronous single-threaded spawner system code into a Burst-compatible job. |