# ObjectMatchMode

> Enum for controlling how e.g. GameObjects and Components are matched.

## Definition

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

```csharp
public enum ObjectMatchMode
```

## Remarks

Additional Resources: [PrefabUtility.ConvertToPrefabInstance](/engine/6000.0/script-reference/unityeditor/prefabutility/converttoprefabinstance.md), [PrefabUtility.ReplacePrefabAssetOfPrefabInstance](/engine/6000.0/script-reference/unityeditor/prefabutility/replaceprefabassetofprefabinstance.md).

## Fields

| Value                                                                                                     | Description                   |
| --------------------------------------------------------------------------------------------------------- | ----------------------------- |
| [ByHierarchy](/engine/6000.0/script-reference/unityeditor/objectmatchmode/byhierarchy.md)                 | Match by full hierarchy name. |
| [ByName](/engine/6000.0/script-reference/unityeditor/objectmatchmode/byname.md)                           | Match by name.                |
| [NoMatchingPerformed](/engine/6000.0/script-reference/unityeditor/objectmatchmode/nomatchingperformed.md) | Disable matching of objects.  |
