Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

ScriptingRuntime from Commandline

Discussion in 'Experimental Scripting Previews' started by kookyoo, Sep 5, 2017.

  1. kookyoo

    kookyoo

    Joined:
    Apr 19, 2010
    Posts:
    53
    Hi,
    As changing .NET scripting runtime requires to restart Unity, could it be possible to add a commandline allowing us to force Legacy or Latest when running Unity please ?

    I didn't saw it on the doc nor in the forum but it could be usefull to prevent wrong version of the editor to launch, and could also allow custom build robots to force a runtime version automatically.

    Thanks,

    Sébastien C.
     
  2. joncham

    joncham

    Unity Technologies

    Joined:
    Dec 1, 2011
    Posts:
    276
    Hello, there is an undocumented and unsupported command line option:

    Code (csharp):
    1. -scripting-runtime-version [legacy|latest]
    This allows you to force the runtime version you want to use. We don't want to document or support this long term, as the plan is to transition to the upgraded Mono quickly as the only option.
     
    kookyoo and Peter77 like this.
  3. kookyoo

    kookyoo

    Joined:
    Apr 19, 2010
    Posts:
    53
    It's perfect ! And I totally understand that you do not plan to keep both version.
    Thanks for your fast answer :D