Search Unity

  1. If you have experience with import & exporting custom (.unitypackage) packages, please help complete a survey (open until May 15, 2024).
    Dismiss Notice
  2. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice

PlayerSettings emscriptenArgs obsolete?

Discussion in 'Web' started by tteneder, Jul 20, 2017.

  1. tteneder

    tteneder

    Unity Technologies

    Joined:
    Feb 22, 2011
    Posts:
    175
    Hi Unity devs,

    at the moment we have the possibility tweak the emscripten command line parameters via a line like this:
    Code (csharp):
    1. PlayerSettings.SetPropertyString("emscriptenArgs", "...");
    The thing is, this method is flagged obsolete:
    Code (CSharp):
    1. UnityEditor.PlayerSettings.SetPropertyString(string, string, UnityEditor.BuildTargetGroup)' is obsolete: `Use explicit API instead.
    I couldn't find an explicit replacement in the current docs (2017.1):
    https://docs.unity3d.com/ScriptReference/PlayerSettings.html

    Will there be one, or are you going to drop support for this?

    To be clear: I don't depend on this (just rarely used it for optimization tests), but I don't like compiler warnings where you don't have a working alternative :)

    thanks!
     
  2. sirrus

    sirrus

    Joined:
    Jun 10, 2012
    Posts:
    250
    I believe it is replaced with PlayerSettings.WebGL.emscriptenArgs...
     
    LCP and tteneder like this.
  3. tteneder

    tteneder

    Unity Technologies

    Joined:
    Feb 22, 2011
    Posts:
    175
    aahhh, thanks for pointing it out!
    I did look at the WebGL doc page, but it wasn't listed there.