http://colorscripter.com/s/1ZNkKbd
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | //h class UParticleSystem; //전방 선언 UCLASS(config=Game) class AExplosion_1Projectile : public AActor { GENERATED_BODY() //파티클 UPROPERTY(EditDefaultsOnly,Category="FX") UParticleSystem* ExplosionEffect; } //cpp #include "Runtime/Engine/Classes/Kismet/GameplayStatics.h" UGameplayStatics::SpawnEmitterAtLocation(GetWorld(), ExplosionEffect, GetActorLocation()); | cs |
'프로그래밍 > Unreal' 카테고리의 다른 글
UE4 UFUNCTION Keywords Explained (0) | 2018.10.24 |
---|---|
언리얼4 SVN (0) | 2017.10.24 |