now i use
particleComp = UGameplayStatics::SpawnEmitterAttached(
bulletParticle,
RootComponent,//should be a particle compent so the fvector can be (0,0,0)
NAME_None,
FVector(200, 50, 50),
FRotator(0, 10, 0),
EAttachLocation::SnapToTarget,
true
);
to create the particle before the character.the bulletParticle is a beam particle like a laser, but how to set the source and target of the particle?