Documentation

Unity Engine


User Manual

Script Reference

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 12 days 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