- Home /
Old version of assets in scene
I have added a texture to my buttons and placed a custom font on them. They look great in the editor, but when I view them in the WebGL build, it only shows the default gray boxes. Why is this happening?
Edit: I discovered this has nothing to do with the buttons at all. The game is being built with an old version of the canvas. No matter what I do to the canvas, change buttons, delete them, add new ones, it builds an old version before I styled the buttons.
Update: I also tried a Windows build just as a test and the buttons showed up as the default gray there as well, so it's not a WebGL related problem.
Answer by root8888 · Aug 04, 2017 at 05:14 AM
After hours and hours wasted, I found a work around. Deleting the library was of no use. I exported all the assets and then imported them into another project. I believe something was corrupt in the project settings folder, but I couldn't be bothered to figure out what it was exactly. Instead, I just reentered all the settings in the editor from the old project to the new one.
I have the same problem, but doing this cleaning only got me so far, I can't get rid of a old behavior in one of my assets. sad boi
Your answer
![](https://koobas.hobune.stream/wayback/20220612131900im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Xbox usb controller button in WebGL 1 Answer
How to prevent large font from increasing build size and load time of WebGL by 100% 0 Answers
WebGL + JSLIB Plugin, how to pass images from JQuery to c#? 0 Answers
Uploading textures to be used for 3d model at runtime? 0 Answers
Get rid of custom editor button texture cell padding 0 Answers