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 ThomasMarsh · Jan 14, 2015 at 01:13 AM · javascripterrorbugmonodevelop

Cant Add Script (or create any new scripts) Javascript

I know this is a common issue but I have spent quite a long time researching various people with similar issues and none of them applied to my particular situation. I tried to create a new script and rename it within MonoDevelop. Unity gave me an error about changing the ".meta" file for the NewBehaviourScript.js and I could not attach the script to anything without an error so I renamed the file to its original name. The issue still remained. I tried restarting Unity and deleting the script but all new scripts cannot be attached to objects. Every time, I get the error message:

alt text

I am currently completely unable to create scripts at all. Does anyone know how to fix this issue? To be clear, I am getting this error now with any script that I create, even if they are empty and freshly created.

Here is a screen grab of an empty, just created, not renamed file producing this error.

alt text

errormessage.png (7.4 kB)
emptyfileerror.png (157.3 kB)
Comment
Add comment · Show 8
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 richyrich · Jan 14, 2015 at 01:47 AM 0
Share

What is 'ChaseTrigger'? Was it your own script?

avatar image ThomasMarsh · Jan 14, 2015 at 01:48 AM 0
Share

It is a script (in JavaScript) I wrote but could not use yet because this happened.

avatar image ThomasMarsh · Jan 14, 2015 at 01:48 AM 0
Share

I tried adding a new empty script to a gameobject and that also produced an error.

avatar image TheOcelot4000 · Jan 14, 2015 at 02:51 AM 0
Share

How about you post the Code that you made that might help.

avatar image ThomasMarsh · Jan 14, 2015 at 03:53 AM 0
Share

The code that is currently in the file is shown on the right in the second screen shot, it is the autogenerated code. The code that I originally put in the file had no effect on the error message.

Show more comments

2 Replies

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

Answer by ThomasMarsh · Jan 14, 2015 at 06:44 PM

I managed to fix my own issue by updating Unity to the most recent version. Still not sure exactly what caused it.

Comment
Add comment · Show 1 · 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 TheOcelot4000 · Jan 15, 2015 at 03:32 AM 0
Share

Well Good

avatar image
0

Answer by TheOcelot4000 · Jan 14, 2015 at 01:52 AM

i don't know if this will help But how about you try to not rename it?

Comment
Add comment · Show 1 · 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 ThomasMarsh · Jan 14, 2015 at 01:53 AM 0
Share

I already tried making a new script and not rena$$anonymous$$g it.

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

27 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 avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Why are these errors messing with me? 2 Answers

syntax errors 1 Answer

9 errors in Javascript 1 Answer

Ending my game 3 Answers

Script Errors Not Sure Why 0 Answers


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