# Sandbox.Animation.GraphBuilder.SyncEventCondition

```csharp
Node SyncEventCondition(State sourceState, int syncEventIndex, SyncEventTrigger trigger = 0)
```

True when the source state's current sync event index matches
`syncEventIndex`. Only meaningful as a state-machine transition condition.

### Parameters

- `sourceState` (`State`)
- `syncEventIndex` (`int`)
- `trigger` (`SyncEventTrigger`), default `0`

### Returns

`Node`

Declared in [Sandbox.Animation.GraphBuilder](/api/Sandbox.Animation.GraphBuilder).
Assembly: `Sandbox.Engine`.
