SetPausePlayback()
Updated: 27 Mar 2024
Updated: 27 Mar 2024
Pauses and plays the playhead when running in Standalone. The definition of paused is that the play head does not advance (time stays constant, frame delta time is zero), but rendering still occurs.
This function only works in Standalone. It has no effect in Builder.
void SetPausePlayback(bool pause);
pause | Sets whether the play head is paused or not. |
var frame = 0;
var flip = true;
function Update()
{
Log("Frame: " + frame);
frame = frame + 1;
if (frame % 100 == 0)
{
SetPausePlayback(flip);
if (flip == true)
flip = false;
else
flip = true;
}
}