I have created a particle effect and I am attaching it using
UGameplayStatics::SpawnEmitterAttached(Elecricity, gunMesh, TEXT("MuzzleFlashSocket"));
but the particle effect isn’t completing.
Electricity = UParticleSystem, gunMesh = USkeletalMeshComponent, TEXT("MuzzleFlashSocket") = Name of the socket.
I have tried setting both KillOnComplete and KillOnDeactivate but to no avail.
Thanks for any help
Source: Windows Questions C++