- Home /
Modifying a shader color dynamicly through another script
Hi,
I'm sure this is really simple, but my brain doesn't seem to process the infos correctly...
I used the HSV_HSB_Colorpicker shader that I found on unity's forum on a cube and a plane. Now, I want to create a script to be able to change there hue ingame, or dynamicly through music.
What can I do ?
renderer.material.SetColor("PropertyName", Color). or renderer.material.color will set the "_Color" property.
In that case, it's not the color that I want to change, but a parameter named _HueShift in the shader code.
http://unity3d.com/support/documentation/ScriptReference/$$anonymous$$aterial.html. I haven't seen this shader, but look through that and find the type of parameter you need. $$anonymous$$y guess would be that it is a float, but you need to find out.
what colorpicker is the OP referring to? i searched the net for HSV_HSB_Colorpicker and only found this post.
Your answer
Follow this Question
Related Questions
Choose color/palette swap? 1 Answer
Surface SpecularMap Shader color integration. 0 Answers
Material doesn't have a color property '_Color' 4 Answers
How to find a variable with a string? 2 Answers