Skip to content

Instantly share code, notes, and snippets.

@glebov21
Created February 21, 2018 15:58
Show Gist options
  • Save glebov21/5b0146d67f115fbd526842f295953729 to your computer and use it in GitHub Desktop.
Save glebov21/5b0146d67f115fbd526842f295953729 to your computer and use it in GitHub Desktop.
WebGL set parameter (low memery) (unity3d)
using UnityEngine;
using System.Collections;
using UnityEditor;
public class WebGL : MonoBehaviour
{
[MenuItem("Tools/SetWebGLParameter")]
public static void SetWebGLParameter()
{
PlayerSettings.SetPropertyString("emscriptenArgs", "-s ALLOW_MEMORY_GROWTH=1 -s DEMANGLE_SUPPORT=1 -s ASSERTIONS=2", BuildTargetGroup.WebGL);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment