This sample demonstrates how to efficiently create entities at run time that are rendered via Entities Graphics and how to do color setting via ECS components. Enter Play mode to see the generated entities.
The TestEntityCreationAPI script uses RenderMeshDescription and RenderMeshUtility.AddComponent APIs with Instantiate to efficiently create entities.
- In the Hierarchy, select Spawner
- In the Inspector, configure settings
- Hit play
For more information about RenderMeshUtility and run time entity creation, see the documentation.