UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FFunctionGraphTask Struct Reference

#include <TaskGraphInterfaces.h>

Static Public Member Functions

static FGraphEventRef CreateAndDispatchWhenReady (TUniqueFunction< void()> InFunction, TStatId InStatId=TStatId{}, const FGraphEventArray *InPrerequisites=nullptr, ENamedThreads::Type InDesiredThread=ENamedThreads::AnyThread)
 
static FGraphEventRef CreateAndDispatchWhenReady (TUniqueFunction< void(ENamedThreads::Type, const FGraphEventRef &)> InFunction, TStatId InStatId=TStatId{}, const FGraphEventArray *InPrerequisites=nullptr, ENamedThreads::Type InDesiredThread=ENamedThreads::AnyThread)
 
static FGraphEventRef CreateAndDispatchWhenReady (TUniqueFunction< void()> InFunction, TStatId InStatId, const FGraphEventRef &InPrerequisite, ENamedThreads::Type InDesiredThread=ENamedThreads::AnyThread)
 
static FGraphEventRef CreateAndDispatchWhenReady (TUniqueFunction< void(ENamedThreads::Type, const FGraphEventRef &)> InFunction, TStatId InStatId, const FGraphEventRef &InPrerequisite, ENamedThreads::Type InDesiredThread=ENamedThreads::AnyThread)
 

Member Function Documentation

◆ CreateAndDispatchWhenReady() [1/4]

static FGraphEventRef FFunctionGraphTask::CreateAndDispatchWhenReady ( TUniqueFunction< void()>  InFunction,
TStatId  InStatId,
const FGraphEventRef InPrerequisite,
ENamedThreads::Type  InDesiredThread = ENamedThreads::AnyThread 
)
inlinestatic

Create a task and dispatch it when the prerequisites are complete

Parameters
InFunction- a function to execute when the prerequisites are complete, with signature void() or void(ENamedThreads::Type, const FGraphEventRef&)
InStatId- StatId of task for debugging or analysis tools
InPrerequisite- Handle for a single prerequisite for this task
InDesiredThread- Thread to run on
Returns
completion handle for the new task

◆ CreateAndDispatchWhenReady() [2/4]

static FGraphEventRef FFunctionGraphTask::CreateAndDispatchWhenReady ( TUniqueFunction< void()>  InFunction,
TStatId  InStatId = TStatId{},
const FGraphEventArray InPrerequisites = nullptr,
ENamedThreads::Type  InDesiredThread = ENamedThreads::AnyThread 
)
inlinestatic

Create a task and dispatch it when the prerequisites are complete

Parameters
InFunction- a functor object to execute when the prerequisites are complete, with signature void() or void(ENamedThreads::Type, const FGraphEventRef&)
InStatId- StatId of task for debugging or analysis tools
InPrerequisites- Handles for prerequisites for this task, can be NULL if there are no prerequisites
InDesiredThread- Thread to run on
Returns
completion handle for the new task

◆ CreateAndDispatchWhenReady() [3/4]

static FGraphEventRef FFunctionGraphTask::CreateAndDispatchWhenReady ( TUniqueFunction< void(ENamedThreads::Type, const FGraphEventRef &)>  InFunction,
TStatId  InStatId,
const FGraphEventRef InPrerequisite,
ENamedThreads::Type  InDesiredThread = ENamedThreads::AnyThread 
)
inlinestatic

◆ CreateAndDispatchWhenReady() [4/4]

static FGraphEventRef FFunctionGraphTask::CreateAndDispatchWhenReady ( TUniqueFunction< void(ENamedThreads::Type, const FGraphEventRef &)>  InFunction,
TStatId  InStatId = TStatId{},
const FGraphEventArray InPrerequisites = nullptr,
ENamedThreads::Type  InDesiredThread = ENamedThreads::AnyThread 
)
inlinestatic

The documentation for this struct was generated from the following file: