# AnimationData

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

<div class="api-meta">
<span class="api-kind api-kind-class" data-pagefind-filter="kind:Class">Class</span>
<span data-pagefind-filter="namespace:Sansar.Simulation">Namespace <a href="/scripting/api/sansar.simulation"><code>Sansar.Simulation</code></a></span>
<span>Inherits <a href="/scripting/api/sansar.script/eventdata">Sansar.Script.EventData</a></span>
</div>

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

Animation events.

```csharp
public class AnimationData : Sansar.Script.EventData
```

## Remarks

See [`AnimationComponent`](/scripting/api/sansar.simulation/animationcomponent). For input bindings see [`CommandData`](/scripting/api/sansar.simulation/commanddata)

## Members at a glance

| Kind | Members |
|---|---|
| **Properties** | [BehaviorName](#behaviorname) · [ComponentId](#componentid) |
| **Methods** | [ToString](#tostring) |

## Properties

### BehaviorName

<div class="api-card">
<span id="P:Sansar.Simulation.AnimationData.BehaviorName"></span>

```csharp signature
public string BehaviorName { get; }
```

The behavior name of the Animation. This name will match the subscribed event.

</div>

### ComponentId

<div class="api-card">
<span id="P:Sansar.Simulation.AnimationData.ComponentId"></span>

```csharp signature
public Sansar.Script.ComponentId ComponentId { get; }
```

The id of the animation component.

</div>


## Methods

### ToString

<div class="api-card">
<span id="M:Sansar.Simulation.AnimationData.ToString"></span>
<span id="M:Sansar.Simulation.AnimationData.ToString()"></span>

```csharp signature
public override string ToString()
```

A string representation of this object.

**Returns:** [string](https://learn.microsoft.com/dotnet/api/system.string) — A string representation of this object.

<details class="api-remarks"><summary>Remarks</summary>

The format of this string may change between releases.

</details>

</div>




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