Toggle actor ticking

I want the tick function of an actor to only be called during some background thread is running and calculating something. At the moment my actor is ticking all the time, I placed this in the constructor:

PrimaryActorTick.bCanEverTick = true;

But the documentation says that this may only be changed inside the constructor, so is there a way to dynamically enable and disable ticking for an actor during runtime?

Have you tried with AActor::SetActorTickEnabled(bool bEnabled) method ? This will work in bCanEverTick is set to true.

Works like a charm, thanks!