Skip to content

AnimationStateMachine.RestoreSnapshot(AnimationStateMachineSnapshot) Method

Definition

Namespace: Brine2D.Animation

Restores runtime state from a previously captured AnimationStateMachineSnapshot. Does not fire OnStateChanged, OnStateEnter\(string, Action<string>\), or OnStateExit\(string, Action<string>\). Pair with RestorePlaybackSnapshot\(AnimatorPlaybackSnapshot\) to perform a full animation restore.

C#
public void RestoreSnapshot(Brine2D.Animation.AnimationStateMachineSnapshot snapshot);

Parameters

snapshot AnimationStateMachineSnapshot