# GetPropertyModifications(Object)

> Returns all modifications that have been applied to a particular prefab instance in a scene or modifications for a prefab instance in an asset.

## Definition

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

```csharp
public static PropertyModification[] GetPropertyModifications(Object targetPrefab)
```

### Parameters

**** (\[Object]\(/engine/6000.5/script-reference/unityengine/object)): Can be a Prefab instance in the scene or a Prefab instance in an Prefab Asset (e.g a Variant asset).

### Returns

| Type                                                                                            | Description |
| ----------------------------------------------------------------------------------------------- | ----------- |
| [PropertyModification\[\]](/engine/6000.5/script-reference/unityeditor/propertymodification.md) |             |

### Remarks

This method returns an array of [PropertyModification](/engine/6000.5/script-reference/unityeditor/propertymodification.md) objects that represent all modifications that have been applied to the given Prefab instance.

For details about the fields of the returned [PropertyModification](/engine/6000.5/script-reference/unityeditor/propertymodification.md) objects, refer to [SetPropertyModifications](/engine/6000.5/script-reference/unityeditor/prefabutility/setpropertymodifications.md) .

Alternatively, use [GetObjectOverrides](/engine/6000.5/script-reference/unityeditor/prefabutility/getobjectoverrides.md), which has Apply and Revert functionality to get property overrides information for a prefab instance.

GetPropertyModifications has the following limitations:

* It returns both default and non-default overrides.
* It returns overrides for all child GameObjects and their components.
* It returns overrides that are no longer valid.
* It can return null.

Additional Resources: [GetObjectOverrides](/engine/6000.5/script-reference/unityeditor/prefabutility/getobjectoverrides.md) [GetAddedComponents](/engine/6000.5/script-reference/unityeditor/prefabutility/getaddedcomponents.md) [GetRemovedComponents](/engine/6000.5/script-reference/unityeditor/prefabutility/getremovedcomponents.md) [GetAddedGameObjects](/engine/6000.5/script-reference/unityeditor/prefabutility/getaddedgameobjects.md) [GetRemovedGameObjects](/engine/6000.5/script-reference/unityeditor/prefabutility/getremovedgameobjects.md).
