Is it possible to change an entity's RenderMesh color in ECS just like the renderer.material.color in monobehavior?

I’m working on a project that requires a lot of performance, so I’m considering trying to re-make it in DOTS.

I have a vague idea on how to do that, except for the material colors that were so easy to set and change in MonoBehavior using renderer.material.color = the_color.

Is there an equally easy way to do it with entities?

2023 Answer

Material overrides

https://docs.unity3d.com/Packages/com.unity.entities.graphics@1.0/manual/material-overrides.html


2020 Answer

Per-instance material params

https://forum.unity.com/threads/per-instance-material-params-support-in-entities-0-2.782207/