We’re introducing Meta accounts in August 2022: a new way to log into VR devices that doesn’t require a Facebook account. Learn more

CANCEL SENDING EVENT WITH DELAY

Cancels an event that was sent with a delay.

Appearance in Composition Pane
Description

Cancel sending event with delay stops the transmission of a send event with delay event that is still in progress. This is useful for things like stopping a loop or for stopping a scheduled event from occurring.
Parameters

event, object
Cancels a delayed event on an object.


PREREQUISITE READING

SEND EVENT WITH DELAY precedes this tutorial


Example 1: Interrupt a looped event

Loop is an event already in progress with send event with delay, and now that an event called stoptimer has been received. Stoptimer stops the loop on timer.