Access Tint Color via C#

99383-tintcolor.png

Hi,

I’m trying to figure out how to access this property of my shader through C# so I can change it during the game.

Any advice is appreciated.

Thank you

Hi, you have to change the material’s “_TintColor” property, for example like this:

public ParticleSystem Particles;
public void ChangeTint()
{
    Particles.GetComponent<Renderer>().material.SetColor("_TintColor", new Color(0, 0, 0, 1));
}