Spawn Particles
Unreal
void AGameActor::PlayParticleEffect() {
UParticleSystem* theParticleFX;
class UGameplayStatics::SpawnEmitterAtLocation(this, theParticleFX, GetActorLocation());//#include "Particles/ParticleSystem.h"
}
Unity
void PlayParticleEffect() {
ParticleSystem theParticleFX = GetComponent<ParticleSystem>();
theParticleFX.Play();
}
Comments
Post a Comment