# ReplaceNameBased

> Replaces the Prefab using name based lookup in the transform hierarchy.

## Definition

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

> **Warning:**
>
> **Deprecated.** This has turned into the more explicit APIs, SavePrefabAsset, SaveAsPrefabAsset, SaveAsPrefabAssetAndConnect

```csharp
ReplaceNameBased = 2
```

### Remarks

This is internally used by the model importer and is useful for relating game object hierarchy built from scratch to an existing Prefab without breaking connections.
