Description

The registered function participates in the recurring parallel update workflow and is executed once per frame while multithreading is enabled for the component. Read Unity-bound values during the normal Unity callback, perform Unity-independent calculations in the worker function, and apply Unity changes on the main thread.

Recurring execution

The function remains registered until it is removed, reset, or the component’s multithreading state is disabled.

Thread-safe data flow

Avoid writing the same mutable value from multiple worker functions unless you provide explicit synchronization.

Parameters

Code Example