# FindProperty(string)

> Find serialized property by name.

## Definition

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

```csharp
public SerializedProperty FindProperty(string propertyPath)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)):&#x20;

### Returns

| Type                                                                                    | Description |
| --------------------------------------------------------------------------------------- | ----------- |
| [SerializedProperty](/engine/6000.3/script-reference/unityeditor/serializedproperty.md) |             |

### Remarks

You can use this to find a specific property in the target object.

Additional Resources: [SerializedObject.GetIterator](/engine/6000.3/script-reference/unityeditor/serializedobject/getiterator.md), [SerializedProperty](/engine/6000.3/script-reference/unityeditor/serializedproperty.md).

### Examples

```csharp
using UnityEngine;
using UnityEditor;

public class MyObject : ScriptableObject
{
    public int myInt = 42;
}

public class SerializedPropertyTest : MonoBehaviour
{
    void Start()
    {
        MyObject obj = ScriptableObject.CreateInstance<MyObject>();
        SerializedObject serializedObject = new UnityEditor.SerializedObject(obj);

        SerializedProperty serializedPropertyMyInt = serializedObject.FindProperty("myInt");

        Debug.Log("myInt " + serializedPropertyMyInt.intValue);
    }
}
```
