Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FActorComponentTickFunction
Description
Conditionally calls ExecuteTickFunc if registered and a bunch of other criteria are met Helper function for executing component tick functions using the same conditions as FActorTickFunction
| Name | ExecuteTickHelper |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Engine/EngineBaseTypes.h |
| Include Path | #include "Engine/EngineBaseTypes.h" |
| Source | /Engine/Source/Runtime/Engine/Classes/GameFramework/Actor.h |
template<typename ExecuteTickLambda>
static void ExecuteTickHelper
(
UActorComponent * Target,
bool bTickInEditor,
float DeltaTime,
ELevelTick TickType,
const ExecuteTickLambda & ExecuteTickFunc
)
Parameters
| Name | Remarks |
|---|---|
| Target | the actor component we are ticking |
| bTickInEditor | whether the target wants to tick in the editor |
| DeltaTime | The time since the last tick. |
| TickType | Type of tick that we are running |
| ExecuteTickFunc | the lambda that ultimately calls tick on the actor component |