Search Unity

Question How to release webgl memory in browser refresh?

Discussion in 'Web' started by zengjunjie59, Mar 14, 2023.

  1. zengjunjie59

    zengjunjie59

    Joined:
    Dec 10, 2019
    Posts:
    19
    unity2021.2.13f1
    PlayerSettings.WebGL.emscriptenArgs = $"-s TOTAL_MEMORY=1000MB";
    The first time I entered the game with the browser everything worked.
    But click on the browser to refresh and an error will pop up.
    abort(“out of memory”)
     
    Last edited: Mar 15, 2023