[언리얼엔진] 4-4. 파티클과 사운드 구현
·
언리얼 엔진/스파르타코딩클럽
파티클/.hUPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Item|Effects")UParticleSystem* PickupParticle;/.cppUParticleSystemComponent* Particle = nullptr; if (PickupParticle){ Particle = UGameplayStatics::SpawnEmitterAtLocation( GetWorld(), PickupParticle, GetActorLocation(), GetActorRotation(), true // 파티클 수명이 끝나면 Destroy 처리 );}// 2초 후 파티클 제거if ..