TGraphTask::CreateTask

Factory to create a task and return the helper object to construct the embedded task and set it up for execution.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Async/TaskGraphInterfaces.h

Include

#include "Async/TaskGraphInterfaces.h"

Syntax

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.

Returns

a temporary helper class which can be used to complete the process.

Parameters

Parameter

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.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss