# preserveHierarchy

> If true, always create an explicit Prefab root. Otherwise, if the model has a single root, it is reused as the Prefab root.

## Definition

* **Type:** Property
* **Namespace:** [UnityEditor](/engine/6000.7/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public bool preserveHierarchy { get; set; }
```
