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

I upgrade 2018.2.20 ->2019.1.4 and get error

Discussion in 'Scripting' started by skyvuhieutran, May 30, 2019.

  1. skyvuhieutran

    skyvuhieutran

    Joined:
    May 28, 2019
    Posts:
    10
    Hi guys!
    I upgrade my project from 2018.2.20f1 to 2019.1.4f1. But 2019 dont compile my .js script. But 2018 work as well.
    Bolt I use .NET 4.x Equivalent and Api Compatibility Level .NET 4.x
    Please help me fix it. Many thanksssss!
     

    Attached Files:

  2. GroZZleR

    GroZZleR

    Joined:
    Feb 1, 2015
    Posts:
    3,201
    As of 2018.3, UnityScript (JS) or Boo will no longer compile in the editor. You can see at the bottom: https://docs.unity3d.com/Manual/UpgradeGuide20183.html

    You'll have to convert the script to C# if you plan to stay on 2019 or perhaps there's some other workaround, but I don't have experience with that as I've never used UnityScript.
     
    skyvuhieutran and Joe-Censored like this.
  3. skyvuhieutran

    skyvuhieutran

    Joined:
    May 28, 2019
    Posts:
    10
    Thanks you