文档

Unity Engine

Unity Engine

ThreadIndex

Returns the index of the current thread.
阅读时间1 分钟最后更新于 1 个月前

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.