Documentation

Unity Engine

Download Unity

Unity Engine

TimeControlState

Options for the play state of a timer: stopped, paused, or playing.
Read time 1 minuteLast updated 3 hours ago

Definition

public enum TimeControlState

Remarks

The distinction between Stopped and Paused is important regarding clip markup gathering :
  • If the timer state transitions from Paused to Playing at time t, we don't want to gather markups located exactly at time t, since they were gathered previously when the timer was paused at time t.
  • If the timer state transitions from Stopped to Playing at time t, we want to gather markups located exactly at time t, since they were not gathered previously.

Fields

Value

Description

PausedThe timer/clock has been manually paused by the user and isn't advancing.
PlayingThe timer/clock is active and advancing
StoppedThe timer/clock has been manually stopped by the user and isn't advancing.