IJobForExtensions
Contains extension methods for jobs implementing the IJobFor interface.
読み終わるまでの所要時間 1 分最終更新 1ヶ月前
Definition
- Type: Class
- Namespace: Unity.Jobs
- Assembly: UnityEngine.CoreModule
public static class IJobForExtensions
Remarks
The methods in this extension class add an instance of a job to the work queue, while IJobFor.Execute defines how to perform an asynchronous task. Use IJobForExtensions.ScheduleByRef to request asynchronous execution, or IJobForExtensions.RunByRef to execute the job immediately on the main thread.
Additional Resources: IJobFor.
Examples
{code Tests/EditModeAndPlayModeTests/Jobs/Assets/DocumentationExamples/ManagedJobDocExamples.cs#ijobfor-apidocs-example}.
Static Methods
Method | Description |
|---|---|
| EarlyJobInit | Gathers and caches reflection data for the internal job system's managed bindings. |
| Run | Performs the job's Execute method immediately on the same thread. |
| RunByRef | Performs the job's Execute method immediately on the same thread. |
| Schedule | Schedules the job for execution on a worker thread. |
| ScheduleByRef | Schedules the job for execution on a worker thread. |
| ScheduleParallel | Schedules the job to execute concurrently on multiple worker threads. |
| ScheduleParallelByRef | Schedules the job to execute concurrently, distributing work across multiple worker threads. |