Navigation
API > API/Runtime > API/Runtime/InterchangeCore > API/Runtime/InterchangeCore/FInterchangeTaskSystem > API/Runtime/InterchangeCore/FInterchangeTaskSystem/AddTask
References
| Module | InterchangeCore |
| Header | /Engine/Source/Runtime/Interchange/Core/Public/InterchangeTaskSystem.h |
| Include | #include "InterchangeTaskSystem.h" |
| Source | /Engine/Source/Runtime/Interchange/Core/Private/InterchangeTaskSystem.cpp |
uint64 AddTask
(
TSharedPtr < FInterchangeTaskBase , ESPMode::ThreadSafe > Task,
TArray < uint64 > & TaskPrerequisites
)
Remarks
Add a task with some prerequisites. Return the task id. If there is an issue the returned task id will be INTERCHANGE_INVALID_TASK_ID The task will start when all prerequisites are done and some thread resource will be available.