- Home /
Unity 4.2 will not open JavaScript files
I insert a new asset (JavaScript) but when i doubeclick it to open it (or even use the open button) i get a message that says:
WINDOWS SCRIPT HOST Script: C:\Users\Me\Documents\Hoopla\Assets\PauseScript.js Line: 1 Char: 4 Error: Invalid Character Code: (Should i give this code away?) Source: Microsoft JScript compilation error
Im using unity on a Windows 8 computer
Like, it's supposed to open in $$anonymous$$ono, but somehow it's trying to open with Windows system (shell)? Odd.
Answer by weenchehawk · Aug 12, 2013 at 11:09 PM
Seems like your .js files are associated with the Windows scripting host. Couple of things to try:
right click on the .js file in windows explorer, select open with and choose your preferred editor.
Inside unity go to edit | preferences & ensure the editor there is set to your preferred editor.
Be sure to let us know how it works out - sounds like the kind of thing that will happen to others.
In Unity, go to "Edit" | "preferences", then select "External tools", and for external script editor you;ll see a dropdown. If You installed monodevelop with Unity it will show up in the list.
Your answer
Follow this Question
Related Questions
I know javascript but i don't understand Unity's javascript! 1 Answer
Russifier for Unity 4.3.3 0 Answers
Js: UnityEngine.Rigidbody is required, how to fix? 2 Answers
Windows 8 store app errors (999+) 1 Answer
Why am I getting this BCE0019 error? ScreenToWorldPoint' is not a member of 'System.Type 1 Answer