- Home /
I fixed it.
[FIXED] WebGL export messes project up. (C#)
So I have created a game and it is finally done. In the editor, it is all polished up and everything. But when I export it into WebGL and run it with FireFox, some references disappear, and all of the buttons switch roles and stuff. Basically an entire aspect of my game gets ruined, but only when I export it. Why is this happening? Using Unity 2018.2.0b7
For example, in the editor, the Red Sparkles prefab is instantiated correctly and at the right time and everything. But when I build the project, it messes everything up. It instantiates the Purple Sparkles prefab instead of the red one. As I said, everything works fine within the editor. But when I export it, it all screws up. Please help!
EDIT: The solution was actually that I had screwed up some scripts, and hadn't tested it thoroughly enough in the editor. Oops.