RunTime error Index out of bound in WebGL BUild

Updated on January 1, 2019 in Unity
Share on Facebook0Tweet about this on TwitterShare on Google+0Share on Reddit0
1 on January 1, 2019

I am using streamingAssets to load the data from a CSV file to store the game data. I built the game on both web assembly and asm.js but it gives the same error. My game works fine in Windows platform though. Any solutions would be helpful.

  • Liked by
Reply
0 on January 1, 2019

I don’t think WebGL can read and write files like that. WebGL doesn’t get a data folder the same way standalone builds do.
You may be able to though, in which case, you need to check your web browsers security settings. Browser don’t let you just read and write files to someone’s computer (for obvious reason), so even if physical you can make and read the CSV, you’ll probably never be able to host the game online.

  • Liked by
Reply
Cancel