Unity Projector Shader Changing Main Color

Viewed 350

Using Unity's Projector LightProjector there is a Main Color setting in the editor. I don't see any MainColor property in the Projector class. How can I change this in code?

1 Answers

I don't see "Color" property in Projector. There is only material, so you should probably change color in material.

material.color = desiredColor;

or

material.SetColor("shader_property_name_here", desiredColor);

if the shader property name is different then "_Color"

Related