Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our 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:
    174
    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:
    174
    aahhh, thanks for pointing it out!
    I did look at the WebGL doc page, but it wasn't listed there.