Back to Entitycomponentsystemsamples

RenderMeshUtilityExample

GraphicsSamples/HDRPSamples/Assets/SampleScenes/4. API Examples/RenderMeshUtilityExample/README.md

latest825 B
Original Source

RenderMeshUtilityExample

This sample demonstrates the RenderMeshUtility.AddComponents API and how to do color setting via runtime created materials and material property setting.

What does it show?

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.

How to use this sample scene?

  1. In the Hierarchy, select Spawner
  2. In the Inspector, configure settings
  3. Hit play

More information

For more information about RenderMeshUtility and run time entity creation, see the Runtime entity creation documentation.