Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FTickFunction
Description
Adds a tick function to the list of prerequisites. This adds the requirement that TargetTickFunction is called before this tick function. This prerequisite will only take effect if the TargetTickFunction is registered and enabled, and will not affect the current tick frame.
| Name | AddPrerequisite |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/EngineBaseTypes.h |
| Include Path | #include "Engine/EngineBaseTypes.h" |
| Source | /Engine/Source/Runtime/Engine/Private/TickTaskManager.cpp |
void AddPrerequisite
(
UObject * TargetObject,
struct FTickFunction & TargetTickFunction
)
Parameters
| Name | Remarks |
|---|---|
| TargetObject | UObject containing TargetTickFunction, only used to verify that the other pointer is still usable. |
| TargetTickFunction | Actual tick function to use as a prerequisite. |