# Sandbox.Animation.GraphExternalSlots.Connect

```csharp
void Connect(string slot, Graph graph)
```

Connect a graph to an empty slot, starting its playback. The graph must use the same skeleton
and must not declare external pose slots. Throws if the slot or controller is unavailable,
the slot is occupied, the graph is incompatible, or recording playback is active.
Each connection has its own instance. Disconnect first to replace or restart it.

### Parameters

- `slot` (`string`)
- `graph` (`Graph`)

Declared in [Sandbox.Animation.GraphExternalSlots](/api/Sandbox.Animation.GraphExternalSlots).
Assembly: `Sandbox.Engine`.
