Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


ThreadIndex

Returns the index of the current thread.
Read time 1 minuteLast updated 12 days ago

Definition

public int ThreadIndex { get; }

Remarks

In a job, each thread gets its own copy of the ParallelWriter struct, and the job system assigns each copy the index of its thread.