Particles and Emiters in C++

Hello there,

I’m posting my first question here due to I can’t find any good information about particles and emitters.I’m pretty nooby at C++ please go easy on me.

I googled a lot, but all threads I’ve found are old and seem no to work at all.What I managed to understand until now is that i need to spawn emitters and attach them ? But how can I achieve it? I’ve read documentation but still it’s not so clear for me :confused:

If there is any more information required, just let me know.

At location

UParticleSystemComponent* UGameplayStatics::SpawnEmitterAtLocation(UObject* WorldContextObject, UParticleSystem* EmitterTemplate, FVector SpawnLocation, FRotator SpawnRotation, bool bAutoDestroy)

exemple:
UGameplayStatics::SpawnEmitterAtLocation(GetWorld(), YourParticleSystem, Location, Rotation);

Attach To Component

UParticleSystemComponent* UGameplayStatics::SpawnEmitterAttached(UParticleSystem* EmitterTemplate, USceneComponent* AttachToComponent, FName AttachPointName, FVector Location, FRotator Rotation, EAttachLocation::Type LocationType, bool bAutoDestroy)

exemple:
UGameplayStatics::SpawnEmitterAttached(YourParticleSystem, Component, NAME_None, Location, Rotation, EAttachLocation::SnapToTarget, false);