I am mostly invested in JavaScript, and I don’t feel like learning a new programming language (C#) right now. I was wondering if there was a way to use JavaScript instead of C#.
If you asked a few years ago, the answer would’ve been “yes”.
Unity dropped Javascript (“Unityscript”, technically) support awhile back, so you cannot use it anymore.
UnityScript (Javascript) had support ended with the release of 2018.2, and the release notes says it was entirely removed in 2019.1. I don’t know if that means that it is still theoretically possible to use in 2018.2+, or not possible, but I’d stick to 2017.4.x if you’re using JS files.
But if you’re just now learning Unity, you’re not going to find a lot of help when you’re trying to use it with JS. All modern tutorials and any forum help will be in C#. All 3rd party assets will be in C#. The community largely moved to C# during the later half of the Unity 4.x era. You’re basically going to be on your own. C# and JS are similar enough where you’ll have a much easier time just learning C#.
Bear in mind the JavaScript used in Unity wasn’t standard JavaScript. I used Unity’s version of JavaScript when I started using Unity. I was learning to program at the time, therefore I had no experience of JS, but relied upon standard JavaScript tutorials almost as much as Unity ones (many of the tutorials were JS back then, which is why I chose the language). So I’m assuming it wasn’t a big step.
I later transferred one of my projects to C# after licensing out my game. It wasn’t a big step. C# is just a bit more verbose and exacting, plus some things are said in a slightly different order. It took 4 days to learn C# and port a complete game to give you an idea of how little it took.
I did start learning C++ at one point. That is a whole different ballgame. JavaScript to C# is a small step with or without that comparison.
Ok. Thanks anyway.