• 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
5
Question by LCe · Jun 04, 2013 at 06:46 PM · stuck

Stuck on Compiling script

Hello,

I can't import assets anymore (with scripts) because Unity hangs on "compiling script". I reinstalled Unity, but it's always the same.

Any help ? How can I reinstall a brand new Unity version ?

thx

Comment
Add comment · Show 9
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 robertbu · Jun 04, 2013 at 06:48 PM 0
Share

Before you toss you attempt to reinstall Unity, try just opening a new project. If you are on Windows, hold the Alt key while you load Unity and then open a new project. If this works, you know the issue is with some resource in your current project.

avatar image LCe · Jun 04, 2013 at 07:43 PM 0
Share

I start with a new project, and it worked fine until I import (project was empty and clean) an asset with scripts (as character controller). I cleaned and reinstall Unity .. same issue ...

stuck on 'compiling scripts' @ 50%

I really don't know how to continu to test Unity.

thx for your help

avatar image robertbu · Jun 04, 2013 at 07:44 PM 0
Share

I'm confused. If you hold down on the alt key and start a new project it works? It only fails when you attempt to import a package? If so is it a specific package or will any package cause the problem?

avatar image LCe · Jun 04, 2013 at 07:54 PM 0
Share

I can import package without script, but if there is one or more scripts, the package won't import. I have to "kill" Unity process from "activity monitor" (I'm on Mac). The problem seems to be on "Mono" process (I think it's a process wich compile scripts). This process is running when Unity is stuck. When I kill it, Unity stop importation and I can continu to use it but I can't run the project. I have to compile scripts before.

Is it clear ?

Package importation worked yesterday.

thx for your help (I'm on trail to migrate our projects on Unity, but it's really difficult to try it with this kind of bug).

avatar image robertbu · Jun 04, 2013 at 08:10 PM 0
Share

So if you were to start with an empty project and then create a script, does the compilation of the script succeed? You might also try importing an asset package on one computer, and then taking the whole folder (and subfolders), and moving it to this computer to see if you can load the project. I don't have any specific knowledge of how to fix your problem, but I'm trying to figure out if the issue is specific to some assets/files or if your whole install is broken in some fundamental way.

Show more comments

6 Replies

· Add your reply
  • Sort: 
avatar image
0

Answer by LCe · Jun 05, 2013 at 06:46 AM

I remove Unity from my computer. Delete all preferences & files regarding Unity/MonoDev. Reboot and clean the PRAM. Finally, Unity is working. end of story.

thx for your help

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
2

Answer by paulmbutterworth · Mar 28, 2014 at 08:06 PM

I have had t$$anonymous$$s exact same situation on my Mac Book.

When I import the standard Water (Basic) package. Unity will give you the import package window... you click import and then Unity will give you the 'compiling scripts' window and sit at 50%... forever.

You will have to force quit the application. Then load Activity Monitor and force quit the 'mono' process listed w$$anonymous$$ch is using a $$anonymous$$gh amount of CPU. Then next time you load Unity with Alt the key pressed.

There seems no way to load the Water package.

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 Glurth · Oct 22, 2015 at 06:36 PM

I had a similar, but not exactly the same issue. For any other google searchers, here is what I had/did:

Immediately AFTER compiling scripts, unity would hang for about 20 seconds, without any kind of response, then would come back to normal. Changes scenes, settings and even code: all no help. But, different projects did NOT have the same issue. Solution: Created a new project. copy the contents of my buggy project's asset folder into my new project's asset folder.
Use new project: problem has vanished.

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 meat5000 ♦ · Oct 22, 2015 at 10:33 PM 0
Share

When Unity seems to not be giving the feedback you need, read the Editor Log. It will tell you exactly what is going on.

If scripts are not compiling, sometimes showing hidden meta files will solve the problem.

avatar image
1

Answer by gsteigert · Nov 22, 2016 at 09:37 AM

Three years have passed and t$$anonymous$$s issue still happens a lot.

In my case, sometimes I have to force quit the mono process and restart Unity. When that doesn't help, logging out and in again (on Windows) is the only way to bypass the "compiling scripts" hell.

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 RealSoftGames · Apr 22, 2017 at 07:55 AM

try re importing all assets, under the assets tab

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
  • 1
  • 2
  • ›

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.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

23 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

Related Questions

Why is my object getting stuck in the edge of other objects? 2 Answers

What is Wrong With This Script? 3 Answers

CharacterController gets stuck on stairs. 2 Answers

Do parent tags always affect children? 1 Answer

How to get a box to fall into a hole and be flush with the hole? 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