Version: Unity 6.1 Alpha (6000.1)
LanguageEnglish
  • C#

JobsUtility

class in Unity.Jobs.LowLevel.Unsafe

/

Implemented in:UnityEngine.CoreModule

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Description

Provides methods for creating, running, and debugging jobs.

Static Properties

CacheLineSizeThe size of a cache line.
IsExecutingJobChecks if this is in a job.
JobCompilerEnabledSet whether to run jobs in Mono or Burst.
JobDebuggerEnabledSet whether to use the jobs debugger at runtime.
JobWorkerCountCurrent number of worker threads available to the Unity JobQueue.
JobWorkerMaximumCountMaximum number of worker threads available to the Unity JobQueue (Read Only).
MaxJobThreadCountThe maximum number of job threads that the job system can create.
ThreadIndexGets the index for the current thread when executing a job, otherwise 0.
ThreadIndexCountGets the maximum number of job workers that can work on a job at the same time.

Static Methods

CreateJobReflectionDataCreates job reflection data.
GetJobRangeGets the begin index and end index of a range.
GetWorkStealingRangeGets a work stealing range.
PatchBufferMinMaxRangesInjects debug checks for min and max ranges of a native array.
ResetJobWorkerCountReset JobWorkerCount to the Unity adjusted value.
ScheduleSchedules a single IJob.
ScheduleParallelForSchedules a IJobParallelFor job.
ScheduleParallelForDeferArraySizeSchedules a IJobParallelFor job.
ScheduleParallelForTransformSchedules an IJobParallelForTransform job.
ScheduleParallelForTransformReadOnlySchedules an IJobParallelForTransform job with read-only access to the transform data.