I know that this is older post, but for me the following work. My class is child of the UActor
AUMyClass::AUMyClass() {
PrimaryActorTick.bCanEverTick = true;
}
void AUMyClass::BeginPlay() {
Super::BeginPlay();
}
void AUMyClass::Tick(float DeltaTime) {
Super::Tick(DeltaTime);
}
Setting the
PrimaryActorTick.bCanEverTick = true;
In the BeginPlay
instead of the constructor was problem.