# CreatePlayable(PlayableGraph, GameObject)

> Implement this method to have your asset inject playables into the given graph.

## Definition

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

```csharp
public abstract Playable CreatePlayable(PlayableGraph graph, GameObject owner)
```

### Parameters

**** (\[PlayableGraph]\(/engine/6000.5/script-reference/unityengine/playables/playablegraph)): The graph to inject playables into.**** (\[GameObject]\(/engine/6000.5/script-reference/unityengine/gameobject)): The game object which initiated the build.

### Returns

| Type                                                                          | Description                                                                                    |
| ----------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- |
| [Playable](/engine/6000.5/script-reference/unityengine/playables/playable.md) | The playable injected into the graph, or the root playable if multiple playables are injected. |
