Toggle particle system via C++

Hi community
I was making a simple campfire and I already have the mesh and the particle setted by blueprints.
How can I toggle the particle system?

This is the fire particle system atribute:



UPROPERTY(EditAnyWhere, BlueprintReadWrite, Category = Campfire)
UParticleSystem* FireParticle;


This is the method I’m trying to make



void ACampfire::ToggleCamfireFire()
{
	
}


Should I use other class instead of UParticleSystem because there are no methods to toggle it :confused:

Thanks

You should probably use UParticleSystemComponent* instead and then try ToggleActive().

I was looking at it when you just repond and yeah that’s the way to go thanks a lot