Search Unity

Access to WebGL Player Settings?

Discussion in 'Immediate Mode GUI (IMGUI)' started by Gaudon, May 12, 2016.

  1. Gaudon

    Gaudon

    Joined:
    Oct 4, 2013
    Posts:
    13
    How can I access information such as WebGL Memory Size in a custom editor window / build script.

    Code (CSharp):
    1. EditorGUILayout.LabelField("Memory Limit (MB)", PlayerSettings.GetPropertyInt("WebGL Memory Size", BuildTargetGroup.WebGL).ToString());
    There doesn't seem to exist an entry for PlayerSettings.WebGL (unlike other platforms).
     
  2. liortal

    liortal

    Joined:
    Oct 17, 2012
    Posts:
    3,562
    (uint)(PlayerSettings.GetPropertyInt("memorySize", (BuildTargetGroup)13) * 1024 * 1024)).ToString());