Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use Java script language in Unity3d 2017.2?

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 ?

like image 944
Nour Avatar asked Oct 27 '17 06:10

Nour


People also ask

Can we use JavaScript for Unity?

The language is called UnityScript -- it has some JavaScript/ EcmaScript like syntax, but isn't JavaScript -- and Unity has deprecated it. You can convert UnityScript to C#, though (or download a much older Unity version).

Can Unity 2022 use JavaScript?

Also, that Javascript is no longer supported on Unity3d.

Should I use C# or JavaScript for Unity?

JavaScript is great for game development but is no longer supported by Unity so you will need to use C#. C# is reasonably easy to learn, especially compared to C++.

Why did Unity get rid of JavaScript?

Unity Technologies We removed the menu item because we would like to avoid new users picking it up, but you can still add new UnityScript files to your project by other means.


1 Answers

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.

like image 146
Programmer Avatar answered Oct 17 '22 15:10

Programmer