Download

About particle problem, particle effect is not following the shell at the origin of map.

I do is tanks artillery, particle effects should be on the shells, but he appeared on the map of the middle,4.19

UPROPERTY(VisibleAnywhere, Category = “Component”)
UStaticMeshComponent* ComponentMesh = nullptr;

UPROPERTY(VisibleAnywhere, Category = “Component”)
UParticleSystemComponent* LaunchParticle = nullptr;

UPROPERTY(VisibleAnywhere, Category = “Component”)
UParticleSystemComponent* ImpactParticle = nullptr;

ComponentMesh = CreateDefaultSubobject<UStaticMeshComponent>(FName(“ComponentMesh”));
SetRootComponent(ComponentMesh);
ComponentMesh->SetNotifyRigidBodyCollision(true);
ComponentMesh->SetVisibility(true);

LaunchParticle = CreateDefaultSubobject<UParticleSystemComponent>(FName(“LaunchParticle”));
SetRootComponent(RootComponent);
//LaunchParticle->SetVisibility(true);
LaunchParticle->SetAutoActivate(true);

ImpactParticle = CreateDefaultSubobject<UParticleSystemComponent>(FName(“ImpactParticle”));
SetRootComponent(RootComponent);
//ImpactParticle->SetVisibility(true);
LaunchParticle->SetAutoActivate(false);