# Memory.SubscriptionHandler

Kind: Delegate · Namespace: Sansar.Script · Assembly: Sansar.Script.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.Script">Namespace <a href="/scripting/api/sansar.script"><code>Sansar.Script</code></a></span>
</div>

<span id="T:Sansar.Script.Memory.SubscriptionHandler"></span>

Notifies scripts about memory events.

```csharp
[System.Obsolete("Use subscription callbacks of type Action<Sansar.Script.MemoryData>", false)]
public delegate void Memory.SubscriptionHandler(
    uint TrackingId,
    MemoryUseLevel UseLevel
)
```

| Parameter | Type | Description |
|---|---|---|
| `TrackingId` | [uint](https://learn.microsoft.com/dotnet/api/system.uint32) | The id of the animation component. The id of the component generating the event. |
| `UseLevel` | [MemoryUseLevel](/scripting/api/sansar.script/memoryuselevel) | The behavior name of the Animation. This name will match the subscribed event. |

## Remarks

See [`Memory`](/scripting/api/sansar.script/memory).



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