AnimationEventCache Class

Summary

[Editor-Only] Caches UnityEngine.AnimationClip.events to reduce garbage allocations.
Assembly
Animancer.dll
Namespace
Animancer.Editor
Base Types
  • Object
graph BT Type-->Base0["Object"] Type["AnimationEventCache"] class Type type-node

Syntax

public static class AnimationEventCache

Methods

Name Value Summary
Clear() void
Clears the cache.
static
GetCachedEvents(AnimationClip) AnimationEvent[]
Returns the UnityEngine.AnimationClip.events and caches the result to avoid allocating more memory with each subsequent call.
static
Remove(AnimationClip) void
Removes the `clip` from the cache so its events will be retrieved again next time.
static