# AnimationComponent.SubscriptionHandler

Kind: Delegate · Namespace: Sansar.Simulation · Assembly: Sansar.Simulation.dll · Script API 47.10.0

<div class="api-meta">
<span class="api-kind api-kind-delegate" data-pagefind-filter="kind:Delegate">Delegate</span>
<span data-pagefind-filter="namespace:Sansar.Simulation">Namespace <a href="/scripting/api/sansar.simulation"><code>Sansar.Simulation</code></a></span>
</div>

<span id="T:Sansar.Simulation.AnimationComponent.SubscriptionHandler"></span>

Animation events.

```csharp
[System.Obsolete("Use subscription callbacks of type Action<Sansar.Simulation.AnimationData>", false)]
public delegate void AnimationComponent.SubscriptionHandler(
    string BehaviorName,
    Sansar.Script.ComponentId ComponentId
)
```

| Parameter | Type | Description |
|---|---|---|
| `BehaviorName` | [string](https://learn.microsoft.com/dotnet/api/system.string) | The behavior name of the Animation. This name will match the subscribed event. |
| `ComponentId` | [Sansar.Script.ComponentId](/scripting/api/sansar.script/componentid) | The id of the animation component. |

## Remarks

See [`AnimationComponent`](/scripting/api/sansar.simulation/animationcomponent).



<p class="api-generated" data-pagefind-ignore>Generated from the Sansar 47.10.0 client ScriptApi snapshot.</p>