Build Errors Related to the Demo Menu
Build Errors Related to the Demo Menu
I am attempting the build my game. I keep getting this error "An asset is marked with HideFlags.DontSave but is included in the build:" I get about 360 of this error when I try to build and it cancels the build. When I remove Demo Menu it works completely fine (I do need this object as it is my pause menu) I also have a custom version I tried that doesn't work either. I am unsure what exactly is causing this error but it still crops up with an unedited version of the demo menu.
- Attachments
-
- image_2024-01-28_031746202.png (88.67 KiB) Viewed 517 times
Re: Build Errors Related to the Demo Menu
Hi,
DemoMenu doesn't do anything with hide flags. That can be set on your GameObject. Perhaps another script on the GameObject is setting it?
Are you using Doozy UI? Some versions of Doozy have issues building.
It could also be the GUI Skin asset. As a test, try unassigning the Demo Menu component's GUI Skin field and then try building.
DemoMenu doesn't do anything with hide flags. That can be set on your GameObject. Perhaps another script on the GameObject is setting it?
Are you using Doozy UI? Some versions of Doozy have issues building.
It could also be the GUI Skin asset. As a test, try unassigning the Demo Menu component's GUI Skin field and then try building.
Re: Build Errors Related to the Demo Menu
The GUISkin was causing the problem. I unassigned it like you said and the pause menu looks and works fine. It also builds out properly. Thank you very much for your help!
Re: Build Errors Related to the Demo Menu
Glad to help!