Method Schedule
Schedule<T>(T, JobHandle)
Adds an IJob
Declaration
[MustUseReturnValue]
public static JobHandle Schedule<T>(this T jobData, JobHandle dependsOn) where T : unmanaged, IJobEntity
Parameters
Type | Name | Description |
---|---|---|
T | jobData | An IJob |
Job |
dependsOn | The handle identifying already scheduled jobs that could constrain this job. A job that writes to a component cannot run in parallel with other jobs that read or write that component. Jobs that only read the same components can run in parallel. |
Returns
Type | Description |
---|---|
Job |
A handle that combines the current Job with previous dependencies identified by the |
Type Parameters
Name | Description |
---|---|
T | The specific IJob |
Remarks
Can't schedule managed components or managed shared components, use Run instead.
Schedule<T>(T, EntityQuery, JobHandle)
Adds an IJob
Declaration
[MustUseReturnValue]
public static JobHandle Schedule<T>(this T jobData, EntityQuery query, JobHandle dependsOn) where T : unmanaged, IJobEntity
Parameters
Type | Name | Description |
---|---|---|
T | jobData | An IJob |
Entity |
query | The query selecting chunks with the necessary components. |
Job |
dependsOn | The handle identifying already scheduled jobs that could constrain this job. A job that writes to a component cannot run in parallel with other jobs that read or write that component. Jobs that only read the same components can run in parallel. |
Returns
Type | Description |
---|---|
Job |
A handle that combines the current Job with previous dependencies identified by the |
Type Parameters
Name | Description |
---|---|
T | The specific IJob |
Remarks
Can't schedule managed components or managed shared components, use Run instead.
Schedule<T>(T)
Adds an IJob
Declaration
public static void Schedule<T>(this T jobData) where T : unmanaged, IJobEntity
Parameters
Type | Name | Description |
---|---|---|
T | jobData | An IJob |
Type Parameters
Name | Description |
---|---|
T | The specific IJob |
Remarks
This job automatically uses the system's Dependency property as the input and output dependency.
Schedule<T>(T, EntityQuery)
Adds an IJob
Declaration
public static void Schedule<T>(this T jobData, EntityQuery query) where T : unmanaged, IJobEntity
Parameters
Type | Name | Description |
---|---|---|
T | jobData | An IJob |
Entity |
query | The query selecting chunks with the necessary components. |
Type Parameters
Name | Description |
---|---|
T | The specific IJob |
Remarks
This job automatically uses the system's Dependency property as the input and output dependency.