Navigation
API > API/Runtime > API/Runtime/MovieScene > API/Runtime/MovieScene/TEntityTaskComponents
Description
Dispatch a custom task that runs non-structured logic. Tasks must implement a Run function that doesn't take any argument.
| Name | Dispatch |
| Type | function |
| Header File | /Engine/Source/Runtime/MovieScene/Public/EntitySystem/MovieSceneEntitySystemTask.h |
| Include Path | #include "EntitySystem/MovieSceneEntitySystemTask.h" |
template<typename TaskImpl, typename... TaskConstructionArgs>
FGraphEventRef Dispatch
(
FEntityManager * EntityManager,
const FSystemTaskPrerequisites & Prerequisites,
FSystemSubsequentTasks * Subsequents,
TaskConstructionArgs &&... InArgs
) const
A pointer to the graph event for the task, or nullptr if this task is not valid (ie contains invalid component types that would be necessary for the task to run), or threading is disabled
Parameters
| Name | Remarks |
|---|---|
| EntityManager | The entity manager to run the task on |
| Prerequisites | Prerequisite tasks that must run before this one, or nullptr if there are no prerequisites |
| Subsequents | (Optional) Subsequent task tracking that this task should be added to for each writable component type |
| InArgs | Optional arguments that are forwarded to the constructor of TaskImpl |