Page 1 of 1

Build Errors Related to the Demo Menu

Posted: Sun Jan 28, 2024 6:18 am
by Kerple
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.

Re: Build Errors Related to the Demo Menu

Posted: Sun Jan 28, 2024 11:33 am
by Tony Li
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.

Re: Build Errors Related to the Demo Menu

Posted: Sun Jan 28, 2024 3:29 pm
by Kerple
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

Posted: Sun Jan 28, 2024 4:59 pm
by Tony Li
Glad to help!