TickComponent not called (c++)

Hi,

I have a UActorComponent, here is my constructor

USwitchComponent::USwitchComponent()
{
	PrimaryComponentTick.bCanEverTick = false;
	PrimaryComponentTick.bStartWithTickEnabled	= true;
	PrimaryComponentTick.TickGroup = TG_PrePhysics;
	
	bAutoRegister	= true;
	bWantsInitializeComponent = true;
	bAutoActivate	= true;
}

But TickComponent not got called, I add everything I read in the AnswerHUB.
The component is attached to a staticmesh (I set to moveable too), the Component is not a SceneComponent.

Any ideas? I try all in my knowledge.

thanks

I think you shoud change:

PrimaryComponentTick.bCanEverTick = true;

1 Like

I had a similar problem but in my case, In BeginPlay() method, I forgot to call Super::BeginPlay() and Tick Stoped working.