Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 14 Next capture
2021 2022 2023
2 captures
13 Jun 22 - 14 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 itskaruro · Feb 08, 2021 at 06:31 PM · editorbuildbuginspectorbuild-error

Game works fine in editor, but build fails with 59 error in the console

My game works fine and as expected in the unity editor, but upon building i get a ton of errors. These are the last ones:

 Error building Player: 38 errors
 
 Build completed with a result of 'Failed' in 8 seconds (8430 ms)
 UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
 
 UnityEditor.BuildPlayerWindow+BuildMethodException: 41 errors
   at UnityEditor.BuildPlayerWindow+DefaultBuildMethods.BuildPlayer (UnityEditor.BuildPlayerOptions options) [0x002ca] in :0 
   at UnityEditor.BuildPlayerWindow.CallBuildMethods (System.Boolean askForBuildLocation, UnityEditor.BuildOptions defaultBuildOptions) [0x00080] in :0 
 UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
 

Also this error keeps repeating itself:

 Assertion failed on expression: 'false'
 UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)


Honorable mentions:

 Unhandled exception. System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
 UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
 
  ---> System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Users\(directory)\Documents\UnityGamesProjects\(game)\Library\ScriptAssemblies\Assembly-CSharp.dll'.
 UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
 
    at System.IO.FileStream.ValidateFileHandle(SafeFileHandle fileHandle)
 UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
 
    at System.IO.FileStream.CreateFileOpenHandle(FileMode mode, FileShare share, FileOptions options)
 UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)
 
    at System.IO.FileStream..ctor(String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, FileOptions options)
 UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)



Edit: don't know if it helps, but i had put the unity project in the recycle bin without emptying it and removed it from unity hub due to stress and stuff not working correctly. once i figured out what to do, i restored the folder to the original location and re-added it in unity hub. then it couldn't build. i haven't tried building it before i deleted it, but i can try building a different project to see if my pc is the problem, unity or just that project

Comment
Add comment · Show 18
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 Jinkel92 · Feb 09, 2021 at 02:34 AM 0
Share

Are you sure that build is created correctly, without erros?

avatar image itskaruro Jinkel92 · Feb 09, 2021 at 12:54 PM 0
Share

the build is created, and the character works fine, but due to the animations being rotated -90 on the x with no way to change it, i have set a rotation on LateUpdate to fix it. In the build, the animations don't work, so the character just keeps spinning on the X axis.

avatar image itskaruro Jinkel92 · Feb 09, 2021 at 08:43 PM 0
Share

update, i changed to the latest version but now it directly fails the build

avatar image xxmariofer · Feb 09, 2021 at 09:57 AM 0
Share

can you manually locate the "C:\Users(directory)\Documents\UnityGamesProjects(game)\Library\ScriptAssemblies\Assembly-CSharp.dll" dll? also make sure the directoy and game doesnt have special characters

avatar image itskaruro xxmariofer · Feb 09, 2021 at 12:55 PM 0
Share

Yes, it's there

avatar image xxmariofer itskaruro · Feb 09, 2021 at 03:38 PM 0
Share

and there are no spaces or special characters in the path?

Show more comments
avatar image TheuerkaufLaurenz · Feb 09, 2021 at 03:11 PM 0
Share

Try deleting the Library Folder and reopen the Projekt. The Library Folder gets recreated automatically. The Files are all autogenerated. $$anonymous$$aybe a fresh recreation of those files can help.

avatar image itskaruro TheuerkaufLaurenz · Feb 09, 2021 at 08:42 PM 0
Share

there SEE$$anonymous$$ to be different errors, but there's still the "assertion failed on expression 'false'" error repeating itself.

2 Replies

· Add your reply
  • Sort: 
avatar image
2
Best Answer

Answer by DaniArkadia · Feb 15, 2021 at 12:12 PM

For anyone who might be stuck with this in the future:

The issue in this case was that AnimationClips in the models import settings didn't have any names, so the animations weren't attaching correctly when building the game. So go into the model import settings > animations and make sure that all clips are named before using them.

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 Rbrinks · May 20, 2021 at 07:40 PM

For anyone who's still stuck, for me the solution was making sure there's no unusual characters in your folder names.

My game had a an ' in it and removing that from one of the folder names solved everything.

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 ossetegames · Sep 06, 2021 at 04:47 PM 0
Share

Holy moly, it took me a while to see this was the answer for me. When the path is built to do all the import stuff, the ' gets removed so your path is not found anymore, if it was part of the project's name for example.

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

181 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

Related Questions

Build error 2 Answers

Object speed is much slower on iOS and Android build than on Editor 2 Answers

Standalone Build Issues 0 Answers

How can I build my game in Android Device? some Sprites are not rendering..,Is there something can I do to render this game in android build? 0 Answers

Rule Tile "GameObject" duplicating in build version 3 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