Quantcast
Channel: Questions in topic: "build"
Viewing all articles
Browse latest Browse all 4084

Shader changing parameter fail in Stand-Alone build (works fine in editor)

$
0
0
Hi, this problem happened in Unity 4.6 I am using built-in Specular shader, and changing the _Shininess parameter with script during the game. This creates a nice light-up and fade out effect like the picture shows. ![alt text][1] [1]: /storage/temp/45547-combine-stagelight.jpg However, after building the whole game, the effect is gone, the _Shininess seems to stop at a fixed value. I got another custom shader that is using similar trick with this, and it broke too. I read some similar problems of custom shader not working in build, but specular is provided by Unity. Has someone encountered this before?

Viewing all articles
Browse latest Browse all 4084

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>