Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/Tasks > API/Runtime/Core/Tasks/FTaskBase > API/Runtime/Core/Tasks/FTaskBase/AddPrerequisites
References
| Module | Core |
| Header | /Engine/Source/Runtime/Core/Public/Tasks/TaskPrivate.h |
| Include | #include "Tasks/TaskPrivate.h" |
template<typename PrerequisiteCollectionType, decltype(std::declval< PrerequisiteCollectionType >().begin()) *>
void AddPrerequisites
(
const PrerequisiteCollectionType & InPrerequisites,
bool bLockPrerequisite
)
Remarks
The task will be executed only when all prerequisites are completed. Must not be called concurrently.
Parameters
| Name | Description |
|---|---|
| InPrerequisites | an iterable collection of tasks |