Purpose

Pauses and unpauses 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.

Syntax

void SetPausePlayback(bool pause);

  • pause : Set’s whether the play head is paused or not.

Example

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;
        }
    }
}