How to set programmatically TOTAL MEMORY size (Web GL)

Hello! How to set parameters on screen “Memory.png” programmatically ?

Is it proper (?):

PlayerSettings.SetPropertyString(“emscriptenArgs”, “-s TOTAL_MEMORY=256”, BuildTargetGroup.WebGL);

TOTAL_MEMORY in MB or bytes ? What about other parameters such as ASSERTIONS

Is it proper (?):

PlayerSettings.SetPropertyString(“emscriptenArgs”, “-s ASSERTIONS=1”, BuildTargetGroup.WebGL);

Can anybody post a link to documents to rules of setting parameters?

2618320--183767--Memory.png

Here you can check all available settings.

yes it is.

bytes.

thank you

Use this instead:

PlayerSettings.SetPropertyInt("memorySize", 256, BuildTargetGroup.WebGL);

Setting the emscripten argument will have no effect, as the number is overridden in the html.