- Home /
Question by
galamot-shaku · Jun 04, 2015 at 02:20 PM ·
texturescript.changenormal map
How to change normal map to unity water (pro) by script
HI I'm using this simple script attached to a button to change the Unity 4.6 water(pro) texture, it works in a regular material, but it doesn't seem to work in the water pro material. Any suggestions?
var texture : Texture2D;
var change : boolean = true;
function changeTexture () {
renderer.material.mainTexture = texture;
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613200618im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Texture is showing strange 0 Answers
Awesome Bump shader in Unty? 0 Answers
Texture3D does not contain a definition for wrapModeW 0 Answers
Best option to change texture/material.. 0 Answers
How To Make This To Work? 2 Answers