Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

HideFlags.DontSaveInBuild

Description

The object will not be saved when building a player.

For Prefab instances in a scene, you can set the hideflag on the Prefab instance handle object as a way to set the same hideflags on all the objects of the Prefab instance. (See PrefabUtility.GetPrefabInstanceHandle).