Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by elitefury · Aug 12, 2013 at 10:08 PM · javascripterror-messageunity 4.2

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

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image DaveA · Aug 12, 2013 at 10:59 PM 0
Share

Like, it's supposed to open in $$anonymous$$ono, but somehow it's trying to open with Windows system (shell)? Odd.

avatar image elitefury · Aug 13, 2013 at 04:37 PM 0
Share

@weenchehawk

Thanks for the help! Yes, it did work.

avatar image Jelochi · Oct 25, 2014 at 01:18 AM 0
Share

Yh i have the same problem and im looking for a solution

1 Reply

· Add your reply
  • Sort: 
avatar image
1
Best Answer

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:

  1. right click on the .js file in windows explorer, select open with and choose your preferred editor.

  2. 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.

Comment
Add comment · Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Convict107 · Aug 13, 2013 at 09:09 PM 0
Share

How do you set it to mono develop built in editor

avatar image weenchehawk · Aug 14, 2013 at 08:09 PM 0
Share

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

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

20 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges