Can I use Javascript language in Unity3d 2017.2?

2019-02-22 10:06发布

I notice that in MonoDevelop editor the auto correction for javascript it doesn't work . Does this mean that Unity is willing to abandon JS ? Can I use Java script language in Unity 2017.2 ?

1条回答
祖国的老花朵
2楼-- · 2019-02-22 10:35

Yes, you can still use it in Unity 2017.2. The menu to create a Javascript script is gone. You have to create a Javascript file with an external file Editor like Notepad then drag it into your Unity project and it should just work. It should have .js extension.

Note that Unity is in the process of stripping the Javascript compiler out of Unity Editor so you won't be able to use Javascript in the future. See this post for more information.

查看更多
登录 后发表回答