JavaScript to C#

Dear Everyone,

We have two javascript files we wanted to add to our unity project, but we could not after finding out Unity does not support Javascript files. What should we do instead of the two files? Is there a way we can convert them into C# files?

It’s usually not hard to hand-rewrite, unless they’re very involved.

If they are common-ish scripts you found on the internet, keep searching because you know if they’re worth using, someone else has already converted them to C#.

There’s also web services that let you drop javascript files on them and spit out C#, or at least do a lot of the legwork. I’ve not used them personally.