Stop(ref TimerState)
Stops a TimerState, so that it doesn't advance during following updates of the TimerState. The behavior of a TimerState when stopped is the same as paused, the only difference is how other systems interpret those two states.
Read time 1 minuteLast updated 4 hours ago
Definition
- Type: Method
- Namespace: Unity.Animations
- Assembly: UnityEngine.AnimationCoreModule
Stop(TimerState)
public static void Stop(this ref TimerState timerState)
Parameters
The timer state to stop.
Remarks
TimerState.PlayState becomes TimeControlState.Stopped on the next TimerStateExtensions.Update. TimerState.IsPlaying is right away.
false