Documentation

Unity Engine

Download Unity

Unity Engine

Enqueue

This function can be used in a thread to enqueue an action that will be executed later in the main thread.
Read time 1 minuteLast updated a month ago

Definition

Enqueue(Action)

This function can be used in a thread to enqueue an action that will be executed later in the main thread.
public static void Enqueue(Action action)

Parameters

action

Action to be executed in the main thread later.

Enqueue(Action, double)

This function can be used in a thread to enqueue an action that will be executed later in the main thread.
public static void Enqueue(Action action, double delayInSeconds)

Parameters

action

Action to be executed in the main thread later.

delayInSeconds

Minimum amount of time in seconds for which the main thread will wait before executing the enqueued action.