Navigation
API > API/Plugins > API/Plugins/PCG > API/Plugins/PCG/UPCGSubsystem > API/Plugins/PCG/UPCGSubsystem/ScheduleGeneric
References
| Module | PCG |
| Header | /Engine/Plugins/PCG/Source/PCG/Public/PCGSubsystem.h |
| Include | #include "PCGSubsystem.h" |
| Source | /Engine/Plugins/PCG/Source/PCG/Private/PCGSubsystem.cpp |
FPCGTaskId ScheduleGeneric
(
TFunction < bool> InOperation,
TFunction < void> InAbortOperation,
UPCGComponent * SourceComponent,
const TArray < FPCGTaskId > & TaskExecutionDependencies
)
Remarks
General job scheduling
Parameters
| Name | Description |
|---|---|
| InOperation | Callback that returns true if the task is done, false otherwise. |
| InAbortOperation | Callback that will be called if the generic task is cancelled for any reason. |
| SourceComponent | PCG component associated with this task. Can be null. |
| TaskExecutionDependencies | Task will wait on these tasks to execute and won't take their output data as input. |