# ReplacePrefabOptions

> Flags for the PrefabUtility.ReplacePrefab function.

## Definition

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

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

```csharp
[Flags]
public enum ReplacePrefabOptions
```

## Fields

| Value                                                                                                    | Description                                                             |
| -------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------- |
| [ConnectToPrefab](/engine/6000.5/script-reference/unityeditor/replaceprefaboptions/connecttoprefab.md)   | Connects the passed objects to the Prefab after uploading the Prefab.   |
| [Default](/engine/6000.5/script-reference/unityeditor/replaceprefaboptions/default.md)                   | Replaces Prefabs by matching pre-existing connections to the Prefab.    |
| [ReplaceNameBased](/engine/6000.5/script-reference/unityeditor/replaceprefaboptions/replacenamebased.md) | Replaces the Prefab using name based lookup in the transform hierarchy. |
