Hello! Im trying to change smoothly color of an object with Particles/Additive shader.
I wrote this :
renderer.material.SetColor("_TintColor",Color.Lerp(renderer.material.color,new Color(0,0.29f,0,0.5f),Time.deltaTime * changingSpeedColor));
This works for Diffuse shader, but im getting this error if im using Particles/Additive shader:
Material doesn't have a color property '_Color'
I understand that this shader has property “_TintColor”. How can i fix this?