This sample demonstrates the new RenderMeshUtility.AddComponents API and how to do color setting via runtime created materials and material property setting.
The AddComponentsExample script shows how to use RenderMeshUtility.AddComponents to create a base entity and then instantiate that entity many times in a Burst job.
- In the Hierarchy, select Spawner
- In the Inspector, configure settings
- Hit play
For more information about RenderMeshUtility and run time entity creation, see the Runtime entity creation documentation.