Created
February 21, 2018 15:58
-
-
Save glebov21/5b0146d67f115fbd526842f295953729 to your computer and use it in GitHub Desktop.
WebGL set parameter (low memery) (unity3d)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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