Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on March 30, 2023, between 5 am & 1 pm EST, in the Performance Profiling Dev Blitz Day 2023 - Q&A forum and Discord where you can connect with our teams behind the Memory and CPU Profilers.
    Dismiss Notice

WASM BUILD - Limit build size as a single html file

Discussion in 'Project Tiny' started by Rangerz132, May 25, 2022.

  1. Rangerz132

    Rangerz132

    Joined:
    Feb 3, 2019
    Posts:
    34
    Hello world,

    Is there any limit size a build can be for WASM? The build seems to be correctly generated but when I click on the html file, an error occured in the console but it does not say anything specific. I wanted to know if the size of the build might cause this issue... I have a lot of sprites due to the missing texture sheet feature..

    Take note that when I build for Dot-Net, I have no issue.

    Thanks!
     
  2. GilCat

    GilCat

    Joined:
    Sep 21, 2013
    Posts:
    676
    No log errors in the browser?
     
  3. Rangerz132

    Rangerz132

    Joined:
    Feb 3, 2019
    Posts:
    34
    Yeah! The error message was : Memory access out of bound. It wasn't saying something more.

    However, I finally managed to find the issue. I refresh the scripts, reimport them all and restart my PC. It seems a bit overkill but it is the only solution I found. It looks like the scripts weren't updating correctly even if I saw them updating.
     
    GilCat likes this.