Description

Schedules a parameterless action for one-time background execution. The call is asynchronous and is intended for isolated calculations that do not access Unity APIs.

One-time execution

Unlike AddFunction, the supplied action is not registered as a recurring per-frame function.

Worker-safe code

Use captured plain data and return Unity-side changes through EnqueueOnMainThread.

Parameters

Code Example