Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Async > API/Runtime/Core/Async/TGraphTask > API/Runtime/Core/Async/TGraphTask/CreateTask
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Async/TaskGraphInterfaces.h |
| Include | #include "Async/TaskGraphInterfaces.h" |
static FConstructor CreateTask
(
const FGraphEventArray * Prerequisites,
ENamedThreads::Type CurrentThreadIfKnown
)
Remarks
Factory to create a task and return the helper object to construct the embedded task and set it up for execution. a temporary helper class which can be used to complete the process.
Parameters
| Name | Description |
|---|---|
| Prerequisites; | the list of FGraphEvents that must be completed prior to this task executing. |
| CurrentThreadIfKnown; | provides the index of the thread we are running on. Can be ENamedThreads::AnyThread if the current thread is unknown. |