Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 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
10
Question by geekm · Feb 07, 2020 at 02:54 PM · playergamebuild-errorsave databuild and run

cannot build player while editor is importing assets or compiling scripts

alt text

unity-error.png (6.8 kB)
Comment
Add comment · Show 5
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 AnriCZ · Feb 07, 2020 at 06:31 PM 0
Share

The same problem in Unity 2019.3 Answer by ryjoe1312 has nothing in common with it

avatar image ryjoe1312 AnriCZ · Feb 07, 2020 at 07:15 PM 0
Share

I deleted my answer sorry, I saw the building player and compiling script

avatar image manuege · Mar 04, 2020 at 08:31 PM 0
Share

Did you solve this? I have the same issue.

avatar image Pbasnal17 · Mar 26, 2020 at 02:55 PM 0
Share

I'm facing the same problem. Any solutions?

avatar image masmear · Jun 26, 2020 at 01:52 PM 0
Share

I got the solution that unity tell you there is some scripts has errors you should delete it and delete the GI cash.. that's helped me

8 Replies

· Add your reply
  • Sort: 
avatar image
4

Answer by Pbasnal17 · Mar 26, 2020 at 02:34 PM

Found a solution- https://forum.unity.com/threads/i-cant-build-my-game.803667/

I had few scripts with "using Editor;" in them which were not part of an Editor assembly definition. After refactoring and moving editor scripts to editor assembly definition and monobehaviour scripts to normal assembly definition, it worked. @geekm

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
1

Answer by lvskiprof · Sep 01, 2020 at 10:40 PM

I don't have a Using line for it, but I do use a method from it. It allows my exit method to handle being in the Unity editor. So I leave the code there, but disable it with a #if:

public void ExitGame()
{
    if (Application.isPlaying & !Application.isEditor)
        Application.Quit(); // We may return from this, but the program will terminate at the end of the frame
#if false
    else
        UnityEditor.EditorApplication.isPlaying = false; // Handle being in the editor, but set #if to true to use it
#endif
} // ExitGame()

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 sincerelysleepy · May 01, 2020 at 09:38 AM

Did you create a custom UnityEditor script? If you did, you need to move it to another project that sits outside of your main project. For example, I had a PopupScriptableEditor.cs file in my main project "Assembly-CSharp". I moved that script into my "Assembly-CSharp-Editor" project. The issue is that the "Player" or your main project is trying to build but there is an "Editor" script, that is also trying to be compiled at the same time and it's not allowed.

alt text


capture.png (18.8 kB)
Comment
Add comment · Show 2 · 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 muhammadfarhan06112001 · Nov 09, 2021 at 02:07 PM 0
Share

i mean u just copied or u cut the script?

avatar image muhammadfarhan06112001 · Nov 09, 2021 at 08:31 PM 0
Share

Heloo how to move script to another project??

avatar image
0

Answer by masmear · Jun 26, 2020 at 01:52 PM

I got the solution that unity tell you there is some scripts has errors you should delete it and delete the GI cash.. that's helped me

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 Qman2015 · Jul 29, 2020 at 11:29 PM

alt text

unity cannot build player while editor is importing assets or compiling scripts

Using blot Using UnityEngine

If I delete this, it doesn't work. How do I fix it?


the-spin-windows-microsoft-visual-studio-7-29-2020.png (90.5 kB)
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.

Follow this Question

Answers Answers and Comments

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

Related Questions

error CS0012 0 Answers

I can't build a game for android 2 Answers

[Unity 2017.3.0f3] Cannot open my build it Crashes (with crash Raport) 1 Answer

Not pushing content to device 0 Answers

Build & Run won't finish 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