I would like to request a C# to Javascript converter for Unity. I know that Javascript is discontinued in Unity 2017 but I’m using Unity 5 and I need to often convert C# to Javascript, the language I’m so accustomed to. There was a converter on the Asset store but it is no longer available.
I could convert manually but sometimes the scripts are very large, so could someone point me to a converter, or if it is not there could someone make a converter? I would handsomely pay for it.
Did you try to Google for one? My guess is there is one out there.
Oh look…C# to UnityScript converter | Utilities Tools | Unity Asset Store
Or maybe https://unitylist.com/p/1k2/CSharp-To-Unity-Script-Converter
Thank you very much. For some reason Google could not find these.
Gotta up that google game if you’re going to be a developer, bruh.
Why not learn the minor differences between the two? they are certainly quite small. In addition, you are locked out of all the fun new things like ECS and that’s sad
You’d be far better off just learning C# in the long run.
Also, not to be annoyingly pedantic, but Unity never really supported Javascript to begin with. It’s UnityScript.
They look similar, and Unity even called it “Javascript” in its UI (as in “Create Javascript”), but it’s not Javascript. If you were to copy and paste random Javascript code from the Internet, there’s a good chance it wouldn’t work without some (major?) tweaks.
Keeping yourself locked in the UnityScript world isn’t really doing yourself any favours, and the pool of UnityScript resources will only continue to shrink into non-existence.
Better to make the jump before that happens.
It has happened - you can’t even get any assets from asset store with Unityscript. Also, I am pretty certain that after a week of learning C# (converting your own game is the perfect exercise) it would be second nature. It’s only a little bit of syntax to tweak.
Plus everyone on forums would help - I think people like helping out where it will do some good.
Just to confirm/elaborate here - all assets using UnityScript were required to update to C# within a time frame, and if they were not updated then they were depreciated. Any new submissions are rejected if they contain any UnityScript.
I mean, you can stay on 5.x but its not doing you any favors.
Well, I’m only going to develop games, not upload assets and I have most of the resources needed. If Unity chooses to discontinue my beloved scripting language, I can switch to Unreal Engine or some other engine.
It’s already been discontinued. I don’t think Unreal uses javascript either. I think they use c++(I may be wrong on this), which is a bit harder to switch to from Javascript/Unityscript style.
They already have.
https://blogs.unity3d.com/2017/08/11/unityscripts-long-ride-off-into-the-sunset/
Edit:
And FYI Unreal does use C++ which carries with it a lot more complications and “headaches” (IMO) compared to C#. Header files, pointers, references, checking for null references, dereferencing, garbage collection, the list goes on…
UnityScript/JS has been deprecated, but right now it will still compile in the latest Unity 2018, though it could finally be removed at any time at their convenience without additional notice (their notice was a year ago). The Unity 5 you’re using though itself has been discontinued. The last major Unity 5 release (5.6) came out a year and a half ago, and they stopped releasing patch builds for it early this year.
If you want to just stick with Unity 5 none of this really matters to you. Your Unity 5 will still work, UnityScript will still work with it, etc. The only issues are it is getting harder and harder to find example code in UnityScript, and eventually changes to supported platforms may make Unity 5 unsuitable for the projects you intend to create. For example, Google is soon going to require that new Play Store submissions support 64 bit, but Unity is only working on that support now and it won’t be backported to Unity 5. Eventually you’ll run into similar platform issues as they progress but Unity 5 does not.
As other said, you only making your self unnecessary pain.
Very little to none support for UnityScript on community and assets side.
You will sooner or later face something specific. Wont be able to resolve quickly, since all will be referring to C#.
Not that is not impossible.
But if I was you, I would really put effort, to quck switch to C#.
Specially you stated, you going to develop.
Which means, you haven’t yet done anything concrete.
Soon if not already, you would be in position of UnityScript to C#, like C to Assembly. Well a bit exaggerating.
And you may end up in situation, where hardware simply won’t handle, for some daft reason. And will be no avail.
I started with Unity 4, or so and never even consider Unity Scrip as main language, since trend was already away from it.
And on side note. You will be spending time learning tricks and quirks of Unity Script, instead, of having benefiting from C#.
Also, where you going to use UnityScript in the future (Either with unity, or outside)? Surely there is none to little demand.