函数参数说明(在GameplayStatics.h中)
将一个粒子放到指定位置上播放:
/** Plays the specified effect at the given location and rotation, fire and forget. The system will go away when the effect is complete. Does not replicate.
* @param WorldContextObject - Object that we can obtain a world context from
* @param EmitterTemplate - particle system to create
* @param Location - location to place the effect in world space
* @param Rotation - rotation to place the effect in world space
* @param bAutoDestroy - Whether the component will automatically be destroyed when the particle system completes playing or whether it can be reactivated
*/
UFUNCTION(BlueprintCallable, Category="Effects|Components|ParticleSystem", meta=(Keywords = "particle system", WorldContext="WorldContextObject", UnsafeDuringActorConstruction = "true"))
static UParticleSystemComponent* SpawnEmitterAtLocation(UObject* WorldContextObject, class UParticleSystem* EmitterTemplate, FVector Location, FRotator Rotation = FRotator::ZeroRotator, bool bAutoDestroy = true);
另一种重载形式: