AnimationLayerSnapshot Class
Definition
Namespace: Brine2D.Animation
An immutable snapshot of an AnimationLayer's runtime configuration. Capture via CaptureSnapshot() and restore via RestoreSnapshot\(AnimationLayerSnapshot\). Useful for cutscenes or ability-override systems that need to temporarily reconfigure a layer and then cleanly revert it.
C#
public sealed record AnimationLayerSnapshot : System.IEquatable<Brine2D.Animation.AnimationLayerSnapshot>
Inheritance System.Object → AnimationLayerSnapshot
Implements System.IEquatable<AnimationLayerSnapshot>
| Constructors | |
|---|---|
| AnimationLayerSnapshot\(float, AnimationLayerMask, AnimationLayerBlendMode, bool\) | An immutable snapshot of an AnimationLayer's runtime configuration. Capture via CaptureSnapshot() and restore via RestoreSnapshot\(AnimationLayerSnapshot\). Useful for cutscenes or ability-override systems that need to temporarily reconfigure a layer and then cleanly revert it. |
| Properties | |
|---|---|
| BlendMode | The AnimationLayerBlendMode at the time of capture. |
| IsEnabled | Whether the layer was enabled at the time of capture. |
| Mask | The AnimationLayerMask at the time of capture. |
| Weight | The blend weight [0, 1] at the time of capture. |