error: an asset is marked as dont save but is included in the build

I am trying to make a build of my game but when I do, I get a error message saying an asset is marked as dont save but is included in the build. I bought some flower models in the asset store to use as detail meshes on a forest map. The error points to all of them. What is this mysterious error? And where can I find the checkbox that marks them as dont save or not? If it even exist.

thanks

Sounds like these assets have hideFlags set on them. See:

GameObjects can be in a number of states, see the HideFlags enum. Maybe write a trivial editor script that simple sets the flag on the selected objects. See:

for inspiration. Rather than the Undo and LookAt, just get the game object attached to the transform and clear the HideFlags.DontSave flag.

What I can’t tell is why these objects have this flag set.

I inspected the save flags for the objects in question, and found there to be none set, so this wasn’t the issue.

However, doing so made me inspect the objects more closely, and I discovered that one of their children somehow had a prefab link to something which had since been removed from the project. Removing these children from the objects seems to have fixed the build issues.

So my advice to the OP and anyone else finding this issue would be to look closely at the children attached to the prefabs in question.

I talked to the seller and fixed the issue. The prefabs for the flowers were somehow corrupt. So I made a empty prefab, and dragged the original prefab into the new one, and did that for all of them. However, I would of never guessed that from the error so its still kind of a mystery.