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.

Question How to release webgl memory in browser refresh?

Discussion in 'WebGL' 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