Problems with Lego Microgame

Hi, I had a prototype of our entry for the Lego Microgame competition working from the editor so started prepping for submission by building for WebGL and I’m having… trouble.

  1. Getting a javascript array index out of bounds error to do with the wasm when certain objects are added to the project (had the issue with initial build, so created another project to build up from nothing and it happened with any object that was pretty trivial). Is there a maximum number of bricks a model built in studio can be or something? there are 83 in one of the ones we had trouble with and it goes wrong with that (as well as larger ones). All of our models use the Palette_LEGO Microgame file btw.

  2. As part of this build back up to repeatedly test the WebGL build to see where it goes wrong, I’m seeing models not properly rendered in the browser. In the screen below, left is the editor, right is in game.
    There’s nothing else in the scene apart from the character and the floor (a pro builder cube with some vertices moved to make hills - size approx 1000 x 1000)

  3. In the browser (when it’s not crashing with js errors), if I click into the player to play the game, the camera drifts upwards until it is at it’s maximum and looking down on the character. I have no joypad/controller plugged in, am using Firefox, and it doesn’t happen if I dont click in - I get the proper camera movement with the mouse, and keyboard control until the mouse gets to the edge of the browser then the mouse doesnt work (because it’s outside the window and having not clicked, it’s not captured - understandable). The initial minigame also does this too though so I’m not 100% worried about htat in terms of hte game submission.

All in all with the errors, slowness of moving items around (have worked on that a bit, forcing unity.exe to use gpu), slow builds, this has been far from the fun intro to get me back into Unity and introduce my kids to it that I hoped it would be but we’ve done so much that we really want to submit our entry. Any ideas very gratefully received…

Can point you in direction of workaround for your #1 issue: Error on build "ArgumentException: Scene file not found: ''."

The answer given in 2nd post worked for me when getting your #1 error on my project.