- Home /
Purple Shaders
Hi
I built a project where certain textures are dynamically loaded onto planes and stacked into a cube, and it works fine in the editor. However, when I build the project as a standalone or web player, all of the textures turn bright purple. I have no idea why.
Answer by Graham-Dunnett · Jul 08, 2011 at 06:27 PM
Pink pixels usually means that the shader does not run on the card, or the shader could not be compiled. Do you get any warnings/errors in the log? (Put another way, a pink shader is used when Unity cannot use the shader you supplied, it's meant to be a visual way of saying "something went wrong".)
The only error I get is this
"Could not find image named screenselector"
That's not an image that I put there, it must be automatically used.
If the shader is the problem, why does it run in the editor?
oh wait. I got a new one this time
*** WARNING: $$anonymous$$ethod selectRow:byExtendingSelection: in class ScreenSelectorTableView is deprecated. It will be removed in a future release and should no longer be used.
Answer by Sparkplug94 · Jul 08, 2011 at 07:18 PM
I fixed it, Thank you.
I played around with the shaders. Instead of the one I was using, I used "Particles/Alpha Blended Premultiply," which seemed to work.