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. Dismiss Notice

Problem with WebGL memory allocation

Discussion in 'Editor & General Support' started by babaramanamarama, Apr 2, 2022.

  1. babaramanamarama

    babaramanamarama

    Joined:
    Oct 4, 2020
    Posts:
    34
    Hi all,
    I am currently testing Unity for small webGL project and have strange issue. When I build small project (default URP) it works, but when I build bigger one (only 180 MB!!!) it gives error about memory allocation and suggests to allocate more memory in build setting or use "-s ALLOW_MEMORY_GROWTH=1" - but it is useless. There is no memory size option in build settings and when I add above key to compiler argument, it gives an error. I tried different servers and browsers, but everything is useless. Any advice?
     
  2. babaramanamarama

    babaramanamarama

    Joined:
    Oct 4, 2020
    Posts:
    34
    Ok forget it, I found solution.