기술 자료

Unity Engine

Unity Engine

ThreadIndex

Returns the index of the current thread.
읽는 시간 1분최근 업데이트: 한 달 전

Definition

  • Type: Property
  • Namespace: Unity.Collections
  • Assembly: UnityEngine.ManagedKernelModule
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.