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 Opel Blitz · Jun 18, 2015 at 07:17 PM · javascripterror

Javascript error "Error Error: System.ArgumentException: An item with the same key has already been added. (Error: System.ArgumentException) (Assembly-UnityScript)"

function OnCollisionEnter(){

Debug.Log("I'm Here!");

}

Any idea why it's spitting out an error? I'm new to this and I have no idea what I'm doing wrong. Any help will be appreciated!

I was following this tutorial:http://www.unity3dstudent.com/2010/07/beginner-b01-basic-collision-detection/

Comment
Add comment · Show 2
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 Xarbrough · Jun 18, 2015 at 09:17 PM 0
Share

Please post the entire script and include the line numbers of the error message. You might also be looking at the wrong script. Try double-clicking the error-message. It should take you right to the offending line. If it doesn't it's probably something in the Editor. If there is nothing apparent, you should try to narrow down the problem by removing everything part by part until the error disappears.

avatar image JackSparrow1 · Jun 18, 2015 at 10:54 PM 0
Share

I have the same problem. Ive been away for a while (had a baby) and i got back to my project and it ran fine with no errors, so i made backup :) then updated to unity 5.1 today. Now monodevelope spits out this same "Error" i cant find any error. Think ill go back to unity 4.6 and use workarrounds to its drawbacks.

2 Replies

· Add your reply
  • Sort: 
avatar image
2

Answer by Xarbrough · Jun 20, 2015 at 05:46 PM

It the error mentioning a custom script and a line number?

Other things to try:

  • Close Unity. Go to your project folder. Keep Assets and ProjectSettings. Delete everything else on that level (Library, sln. csproj files etc.). Reopen Unity to re-import everything and generate a new library.

  • Create a new project and make sure it runs. Then add the assets from your old project and manually type in or copy ProjectSettings. This approach saved me a couple of times when there was some generic error, I couldn't track down.

Comment
Add comment · 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
0

Answer by JackSparrow1 · Jun 20, 2015 at 05:22 PM

Just some more info: I ran my old copy of Unity 4.6 used the backup files for project and everything worked fine. There appears to be an error in unity 5.1 that caused this anommoly to appear.

Comment
Add comment · 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

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

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Simple Enemy AI not working : NullReferenceException: Object reference not set to an instance of an object 2 Answers

how do i use touch.Position 1 Answer

expecting (, found 'Update' and unexpected char: 0x200B. 2 Answers

Texture2d[]: Array index is out of rang (Javascript) 3 Answers

Codding Error(I need help)!!!!!!!!!!!!!!!!!!!!!!!! 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