# CopyFromSerializedPropertyIfDifferent(SerializedProperty)

> Copies a changed value from a SerializedProperty to the corresponding serialized property on the serialized object.

## Definition

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

```csharp
public bool CopyFromSerializedPropertyIfDifferent(SerializedProperty prop)
```

### Parameters

**** (\[SerializedProperty]\(/engine/6000.5/script-reference/unityeditor/serializedproperty)):&#x20;

### Returns

| Type                                                          | Description |
| ------------------------------------------------------------- | ----------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) |             |

### Remarks

The value is only copied to the object if it differs.
