기술 자료

Unity Engine

Download Unity

Unity Engine

ThreadIndex

Gets the index for the current thread when executing a job, otherwise 0.
읽는 시간 1분최근 업데이트: 14일 전

Definition

public static int ThreadIndex { get; }

Remarks

When multiple threads are executing jobs, no two threads have the same index. The range of this property is [0, JobsUtility.ThreadIndexCount). The value returned when used from within a job is the same as the value stored in job members decorated with NativeSetThreadIndexAttribute.
Additional Resources: JobsUtility.ThreadIndexCount