- Home /
Change water material Refraction color?
I'm using Unity's WaterBasicDay material and I'm trying to change the Refraction Color in code. how can I manipulate the Refraction color in code or where do I find it in code?
untitled.png
(11.3 kB)
Comment
thank you thank you! that really helped and got it to work :D
If it helped, could you accept the answer pls? :)
Answer by screenname_taken · Jun 02, 2015 at 09:15 PM
See that gear icon at the top right? Click that and then on "Select Shader". Under "Properties" you should be able to see the name of the input you want to change. You can use renderer.material.SetColor http://docs.unity3d.com/ScriptReference/Material.SetColor.html