1
\$\begingroup\$

I'm trying to follow a youtube tutorial for my new game(images puzzle) and by using it's implementation on github to upload it later on facebook.

When I run the game inside unity editor its work without any problem, but when I export the game to exe or WebGL I get pink images background instead of the image am using.

Youtube tutorial link here. GitHub repository link here.

The game works Fine inside unity enter image description here But shows pink images on web browsers and exe games enter image description here Why the images are showing pink background?

\$\endgroup\$
1
  • 2
    \$\begingroup\$ The pink background is how unity displays a missing texture (or shader), Unity removes any files it thinks aren't used at build time, so somehow unity thinks the texture/shader you are using isn't being used (referenced in the scene) so removes it, try putting in a folder called "Resources" in your root Assets folder see if that helps, files in there are always included in the build. \$\endgroup\$ Commented Jun 12, 2018 at 15:16

0

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.