Question by
dladeiratx · Apr 26, 2019 at 06:41 AM ·
errorshaders
Color.a on export turns pink
I used this line of code to modify the opacity of a block when hit by a yellow bullet Renderer renderer = info.gameObject.GetComponent (); Color color = renderer.material.color; color.a = i; renderer.material.shader = Shader.Find( "Transparent/Diffuse" ); renderer.material.color = color;
In the editor it looks good but on export the brick turns pink...
screen-shot-2019-04-24-at-215129.png
(87.3 kB)
screen-shot-2019-04-24-at-215038.png
(46.7 kB)
Comment
Have you tried to add the shader in the list of the Always included shaders
of the Graphics
tab of the Project Settings?
Your answer
Follow this Question
Related Questions
Lightweight Shader graph not working 1 Answer
I got invalid conditional expression error but there isn't any invalid conditional . 0 Answers
Shader Problem 0 Answers
Custom Urp shader weird problem 0 Answers
Shader Parse error 2 Answers