# GetGraph<U>(U)

> Returns the PlayableGraph that owns this Playable. A Playable can only be used in the graph that was used to create it.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine.Playables](/engine/6000.7/script-reference/unityengine/playables.md)
* **Assembly:** UnityEngine.CoreModule

## GetGraph\<T>(T)

```csharp
public static PlayableGraph GetGraph<U>(this U playable) where U : struct, IPlayable
```

### Parameters

**** (T): The [Playable](/engine/6000.7/script-reference/unityengine/playables/playable.md) used by this operation.

### Returns

| Type                                                                                    | Description                                                                                                                                                                                            |
| --------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [PlayableGraph](/engine/6000.7/script-reference/unityengine/playables/playablegraph.md) | The [PlayableGraph](/engine/6000.7/script-reference/unityengine/playables/playablegraph.md) associated with the current [Playable](/engine/6000.7/script-reference/unityengine/playables/playable.md). |

### Remarks

Use this templated extension method on any type that inherits from [IPlayable](/engine/6000.7/script-reference/unityengine/playables/iplayable.md).
