Around a year ago I made a WebGL build of a game I was developing - it looked and worked fine. Since then I made barely any changes to it (I think I added mobile controls) and when I returned to the project today and made another WebGL build - stuff is broken.
First of all, I had to turn off compression on 4 images (they contained instructions, nothing in-actual-game) I had compressed using the default ‘normal compression’ setting, cause the build wouldn’t complete, throwing an error stating textures can’t be compressed for WebGL.
The main problem though, is that sprites are not showing up at all or showing up broken.
Examples:
Previous build (good): Screenshot - caf65927b2b78c0530d31f7cf1bb0a76 - Gyazo
Current build (bad): Screenshot - d5392deff0f66d275486497a2b2db5e0 - Gyazo
Previous build (good): Screenshot - 1a7f67172d7dbf177382a77990d8a79f - Gyazo
Current build (bad): Screenshot - f6a755d129e4a8c1d406ae870a12fae9 - Gyazo
What could be the cause? It looks like whatever changes were made to Unity over the past year somehow broke my project for WebGL, cause the assets in question were untouched by me and used to look fine. The desktop build is fine.