|
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 ?
(comments are locked)
|

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/Material.html. I haven't seen this shader, but look through that and find the type of parameter you need. My 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.