• 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
Question by corndog80 · Feb 14, 2013 at 10:27 PM · compilation

Compilation/ possible scripting error (screen capture included)

I'm new to Unity and Unity Script. As you can see in the image below, I get an error on a line that does not exist, which I looked up and found: Weird error on line that doesn't even exist and the answer was: "The error it's giving you is related to the compiled version of the code, not your version." - Farfarer Leeds,UK.
I'm not sure how to disconnect the connection between the script and the game other than deleting the Script component from the Inspector..

My questions are:

  1. Is there a scripting error in this script?

  2. How does compilation work?
    (I know the order of compilation, but In my "Assets" folder I have "Scripts", "iTween", "Plugins", "Models". Do I need a "Standard Assets" folder for this particular script to work since it contains iTween?)

Any hints or comments would be greatly appreciated. Thanks!

Unity Script Compilation error

compilationerror.jpg (139.6 kB)
Comment

People who like this

0 Show 0
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

1 Reply

  • Sort: 
avatar image

Answer by Arithan · Feb 14, 2013 at 10:39 PM

The script in your screenshot is the file "playAnimation_Togggle.js", but the error is referring to the script "playAnimation.js"

Comment

People who like this

0 Show 3 · 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 corndog80 · Feb 14, 2013 at 10:47 PM 0
Share

Thank you! I didn't know how to change the link between the old script and the main game object, so I just deleted "playAnimation.js" and now it works! But I don't want to delete a script everytime the compilation is off.. I wonder if there a better way than just deleting?

avatar image Arithan · Feb 14, 2013 at 11:00 PM 0
Share

I'm not sure if I'm understanding your question correctly, but when you edit and save your existing scripts, it should automatically sync with Unity and update the scripts, including the ones you edited that are already attached to game objects. If for some reason your project is out of sync, you can sync it by following the instructions here:

http://docs.unity3d.com/Documentation/Manual/HOWTO-MonoDevelop.html

avatar image corndog80 · Feb 15, 2013 at 12:09 AM 0
Share

Thank you sooo much! This will really help me in the future!

Unity Answers is in Read-Only mode

Unity Answers content will be migrated to a new Community platform and we are aiming to launch a public beta by June 9. Please note, Unity Answers is now in read-only so we can prepare for the final data migration.

For more information and updates, please read our full announcement thread in the Unity Forum.

Follow this Question

Answers Answers and Comments

10 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

Related Questions

Trigger a project refresh via script 1 Answer

Measuring script recompilation times 1 Answer

Compilation failed because compiler couldn't be executed.... 2 Answers

Monobinmono/compilation not working, fix? 0 Answers

iOS Project Build (mscorlib.dll) problem 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