> For the complete documentation index, see [llms.txt](https://docs.airship.gg/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.airship.gg/unity-for-airship/easy-helper-utils/material-color-urp.md).

# Material Color URP

Set the color of a material

Place this component on a renderer's game object to dynamically assign the color value of its materials. It works for multiple materials on one mesh and can also be changed at runtime.&#x20;

{% hint style="info" %}
This script sets the materials `_MainColor` variable via a MaterialPropertyBlock. Use this name in your custom shader to have it support MaterialColorURP.&#x20;
{% endhint %}

<figure><img src="https://214663474-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FIbaXflSJA8L9N9yOx089%2Fuploads%2Fa4TRGW6wuffVXdXd6Zn9%2FMaterialColorURP.gif?alt=media&amp;token=f3200ea3-12cf-48a9-aa24-80f18d3ae319" alt=""><figcaption></figcaption></figure>
