- Home /
HideFlags.DontSave is included in build
Hey guys,
Everytime I try to build my project I get the errors below. Does anyone have any idea what could be causing this and how I could find the problem?
Thank you
An asset is marked with HideFlags.DontSave but is included in the build: Asset: 'Library/unity default resources' (You are probably referencing internal Unity data in your build.) UnityEditor.HostView:OnGUI()
Building - Failed to write file: Temp/StagingArea/Data/Resources/unity_builtin_extra UnityEditor.HostView:OnGUI()
Answer by yeagz7 · Feb 04, 2015 at 08:59 PM
Figured it out. For some reason the files in our Project Settings folder got corrupted. I deleted them and reopened Unity and it was fixed.
Same problem. Deleting some files in my Project Settings resolve. But after some build... happens again... I can not delete the project files in each test ! It is a serious problem for me.
I our case, it was an issue with ProjectSettings/GraphicsSettings.asset
Resetting ProjectSettings/GraphicsSettings.asset by deleting it and restarting Unity worked for me too. Thanks @bguyl !
Answer by Shabeer-Chauhan · Aug 25, 2015 at 02:56 PM
. i also faced this problem but by changing font in NGUI back toward from unity to NGUI fonts, it is solved, but still can not understand the reason behind this. can anyone share please..!
Answer by blacktriangles · Apr 02, 2017 at 10:10 AM
I got this error after attempting to use Unlit/Color builtin shader. I tracked it down by removing all the scenes from my project, then one by one enabling them until I located the scene that failed to build. I then removed each game object until I located the game object that was causing the build to fail. Then i removed components, then finally attributes.
The specific attributes were two materials I was referencing to use in some custom rendering code. I then replaced their shaders and finally my build started working again.
Your mileage may vary, but this was such a miserable debugging process I thought it was worth a share.
Answer by Vykx · Aug 22, 2017 at 01:08 AM
I solved this problem by removing a scene at a time in the build and then I realized that a scene got corrupted for no reason. Even deleting everything inside and putting new camera did not work.
Answer by MoMughal · Dec 06, 2018 at 10:20 AM
I started getting the same error when my unity crashed and 1 prefab got corrupted, I fixed it with the following method: 1: close unity 2: open unity project directory 3: delete library folder 4: reopen unity 5: switch platform if needed and build again
Your answer
![](https://koobas.hobune.stream/wayback/20220613182503im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Unity Build Problem with sprite's 1 Answer
Game shifts to lower right corner post build 0 Answers
Material/Shader issue 0 Answers
Can someone tell me what's the problem with my JDK? 1 Answer