Is it possible to add tick function to movement component?

I would like to add tick function to my custom movement component to control my own character movement. Since tick derived from Actor and from the source code I can see abstract UStruct FTickFunction.

I can call functions of movement component from tick function of Actor but I dont want to do that

Couldnt find out how to implement it.

Within your movement component, you can simply override

void UActorComponent::TickComponent(float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction *ThisTickFunction)

For the newbies :

The explanation of this rule :

Actors use Tick() and ActorComponents TickComponent()

Proper syntax is as below, the very answer I was looking for

virtual void TickComponent(float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction* ThisTickFunction) override;
1 Like