# DontSaveInEditor

> The object will not be saved to the Scene in the editor.

## Definition

* **Type:** Field
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
DontSaveInEditor = 4
```

### Remarks

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](/engine/6000.0/script-reference/unityeditor/prefabutility/getprefabinstancehandle.md)).
