- Home /
Error Occurs in Github Pages But Not Unity Game Engine
I'm trying to use Github Pages with my Unity game, but after I press the start button in my game, I get an error. I don't understand why this is happening because when I play the game in the Unity game engine, I don't get any errors. I don't use Github Pages very often, so I don't really understand what could have gone wrong.
Maybe you messed around in the settings and it turned out that changing WebAssembly Arithmetic Exceptions to ignore fixed the issue.
Answer by Ryden107 · Apr 18 at 02:47 AM
I messed around in the settings and it turned out that changing WebAssembly Arithmetic Exceptions to ignore fixed the issue.
But that's not really a solution. You clearly have an error somewhere in your code. The error shown in your screenshot indicates that you convert a float to an int that is too large to be represented by an integer. A usual 32 bit integer can only represent values up to about 2 billion. So ignoring the conversion error may just result in other issues along the line. So you really should actually figure out where your values go off limits and prevent that.
Exceptions and errors are a tool to find issues in your code. Ignoring them does not solve the problem.