# Editor.EditorUtility.Prefabs.GetTargets

```csharp
static SerializedProperty GetTargets(GameObject root, PrefabVariable variable)
```

> **Obsolete.**

Get a SerializedProperty representing variable targets. Will return null if there are no targets

### Parameters

- `root` (`GameObject`)
- `variable` (`PrefabVariable`)

### Returns

`SerializedProperty`

Declared in [Editor.EditorUtility.Prefabs](/api/Editor.EditorUtility.Prefabs).
Assembly: `Sandbox.Tools`.
