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
If there is any more information required, just let me know.
UParticleSystemComponent* UGameplayStatics::SpawnEmitterAtLocation(UObject* WorldContextObject, UParticleSystem* EmitterTemplate, FVector SpawnLocation, FRotator SpawnRotation, bool bAutoDestroy)
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)
UGameplayStatics::SpawnEmitterAttached(YourParticleSystem, Component, NAME_None, Location, Rotation, EAttachLocation::SnapToTarget, false);