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
1
Question by LifeSizeDeity · Jul 16, 2010 at 11:03 PM · compilerestart

Scripts won't compile unless I restart Unity

I can add something to a script, save it and click on the scene, but it won't actually compile. If I restart my scene, as its starting, it will then compile the script. Before you reply, yes, my script is located in the appropriate directory.

Comment
Add comment · Show 1
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 MikezNesh · Jul 16, 2010 at 11:11 PM 0
Share

Had this problem before too.

3 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by Mike 3 · Jul 16, 2010 at 11:05 PM

I've had this problem plenty of times (mainly on windows). The usual quick fix is to right click any script file (doesn't matter which), and click reimport. It'll compile everything and you should be good to go

Comment
Add comment · 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 MikezNesh · Jul 16, 2010 at 11:11 PM 0
Share

Can you answer this mike?Thanks. http://answers.unity3d.com/questions/15631/drawing-ray-for-pathfinding

avatar image LifeSizeDeity · Jul 20, 2010 at 03:38 PM 0
Share

Unfortunately that isn't working. The only thing that works is reimport all, which restarts unity and actually restarting unity.

avatar image Mike 3 · Jul 20, 2010 at 04:10 PM 0
Share

Ugh, in that case it's a worse bug than my normal one (though i've seen it before). Don't know what causes it, but yeah, unity just won't refresh the builds at all, and it's a pain

avatar image
0

Answer by Juan.du · Aug 16, 2010 at 05:46 PM

I had this same issue on windows.

I solved it by deleting the files from the previous build:

The exe file and the folder named like 'exefilenanme_Data'

Then rebuild and it worked.

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 yoyo · Jan 26, 2011 at 01:40 AM

Select Edit menu > Preferences ... and make sure Auto Refresh is turned on. (This may or may not be your particular problem, but would certainly create the symptoms you describe.)

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

No one has followed this question yet.

Related Questions

restart game and load a very new scene... 2 Answers

Restarting scene not working properly 1 Answer

Restarting the entire game 1 Answer

My Player dies only when he wants to?!? 1 Answer

Giant black spot in scene when restarting 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