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

Popular posts from this blog

Open Level

Animation

Play Sound