Mircea-Alexandru
Mircea-Alexandru

Reputation: 1

Unity Build error/path access denied issue

Lately, for me, Unity started to act a bit weird. After working on my first project for several weeks, I wanted to create my first build and I did - it went smoothly, everything rendered just fine, etc.

After this success I realized I need to add 2 minor things to my project and I did - but since then my building thing is keep crashing after a few seconds.

Build completed with a result of 'Failed' in 3 seconds (2816 ms)

Building Player failed

UnityEngine.GUIUtility:ProcessEvent (int,intptr,bool&)

For a brief moment, I thought I fixed it - I updated my Unity editor to the latest version, re-added my project to Unity Hub, and my projected build successfully...but just one. Now the builder is keep crashing. Has anyone encountered this before?

Also, while trying to find a fix for this I realized that I can't reset my Unity Layout - I keep getting this weird error (restarted Unity, PC, updated the Editor, etc):

OException: Access to the path '\\?\D:\Unity\xxxxx\UserSettings\Layouts' is denied.

System.IO.FileSystem.RemoveDirectoryInternal (System.String fullPath, System.Boolean topLevel,

Any idea what can cause this? Could this access issue crash my build process as well?

Thanks in advance!

To be honest I am not sure what are the causes for the issues above so I did the basic - restarted unity, updated the Editor, restarted PC, cleared cache.

The only thing that made my unity build my project for the second time was updating the editor but now it crashes again.

I am really curious if the access thing is one of the issues for the builder.

Upvotes: 0

Views: 549

Answers (1)

Mircea-Alexandru
Mircea-Alexandru

Reputation: 1

Finally, I fixed my issues. It seems Google Drive was messing with file permissions so both path access and Unity builder were acting weird.

I uninstalled Google Drive and made a fresh new project using the backup files from my project. Everything is working just fine now, without any issues.

Now I am using Github as my backup solution.

Upvotes: 0

Related Questions