- Home /
build error: HideFlags.DontSave with asset named PreMatLight0
hi
i getting build error on one of scenes that says:
An asset is marked with HideFlags.DontSave but is included in the build: Asset: 'Library/unity editor resources' Asset name: PreMatLight0 (You are probably referencing internal Unity data in your build.) UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)
searched on the internet looks like no one asked before about this and i looked over all images on that specific scene and no item named PreMatLight0 attached to them
this error only occur when that specific scene is on build list and ticked if i build game without that scene everything is fine
searched on the internet and found out its a built-in image of the editor but im just using default ui-mask and background from built-in images which should be fine
target is android with unity 2019.2.17f1
Answer by ata_2 · Aug 24, 2020 at 02:22 PM
so i find out what was problem and hope this helps someone
this problem caused by type mismatch material on one of image components i didn't attached it but somehow it showed the material error
for debug you can build every scene separate to find which scene cause this error and then try to find this ui thing by removing step by step
Your answer
Follow this Question
Related Questions
Game build taking days? 1 Answer
Game Crashes When Changing Scenes When Built 1 Answer
Help, i can't build my game..! 1 Answer
Standalone Build Issues 0 Answers
Don't save gameobjects to scene file (No hide flags) 0 Answers