UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Emitter.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3//~=============================================================================
4// Emitter actor class.
5//~=============================================================================
6
7#pragma once
8
9#include "CoreMinimal.h"
11#include "GameFramework/Actor.h"
12#include "Emitter.generated.h"
13
15
23
30
39DECLARE_DYNAMIC_MULTICAST_DELEGATE_SixParams( FParticleDeathSignature, FName, EventName, float, EmitterTime, int32, ParticleTime, FVector, Location, FVector, Velocity, FVector, Direction);
40
52DECLARE_DYNAMIC_MULTICAST_DELEGATE_NineParams( FParticleCollisionSignature, FName, EventName, float, EmitterTime, int32, ParticleTime, FVector, Location, FVector, Velocity, FVector, Direction, FVector, Normal, FName, BoneName, UPhysicalMaterial*, PhysMat);
53
54UCLASS(hideCategories=(Activation,"Components|Activation",Input,Collision,"Game|Damage"), ComponentWrapperClass, MinimalAPI)
56{
58
60
61private:
62 UPROPERTY(Category = Emitter, VisibleAnywhere, BlueprintReadOnly, meta = (ExposeFunctionCategories = "Particles|Beam,Particles|Parameters,Particles,Effects|Components|ParticleSystem,Rendering,Activation,Components|Activation", AllowPrivateAccess = "true"))
63 TObjectPtr<class UParticleSystemComponent> ParticleSystemComponent;
64public:
65
66 UPROPERTY()
67 uint32 bDestroyOnSystemFinish:1;
68
69 UPROPERTY(EditAnywhere, BlueprintReadWrite, Category=Emitter)
70 uint32 bPostUpdateTickGroup:1;
71
73 UPROPERTY(replicatedUsing=OnRep_bCurrentlyActive)
74 uint32 bCurrentlyActive:1;
75
76 UPROPERTY(BlueprintAssignable)
77 FParticleSpawnSignature OnParticleSpawn;
78
79 UPROPERTY(BlueprintAssignable)
80 FParticleBurstSignature OnParticleBurst;
81
82 UPROPERTY(BlueprintAssignable)
83 FParticleDeathSignature OnParticleDeath;
84
85 UPROPERTY(BlueprintAssignable)
86 FParticleCollisionSignature OnParticleCollide;
87
88#if WITH_EDITORONLY_DATA
89
90private:
91 UPROPERTY()
92 TObjectPtr<class UBillboardComponent> SpriteComponent;
93
94 UPROPERTY()
96public:
97
98#endif
99
100 UFUNCTION()
101 ENGINE_API virtual void OnParticleSystemFinished(class UParticleSystemComponent* FinishedComponent);
102
104 UFUNCTION()
105 ENGINE_API virtual void OnRep_bCurrentlyActive();
106
107 // BEGIN DEPRECATED (use component functions now in level script)
108 UFUNCTION(BlueprintCallable, Category=Particles, meta=(DeprecatedFunction))
109 ENGINE_API void Activate();
110 UFUNCTION(BlueprintCallable, Category=Particles, meta=(DeprecatedFunction))
111 ENGINE_API void Deactivate();
112 UFUNCTION(BlueprintCallable, Category=Particles, meta=(DeprecatedFunction))
113 ENGINE_API void ToggleActive();
114 UFUNCTION(BlueprintCallable, Category=Particles, meta=(DeprecatedFunction))
115 ENGINE_API bool IsActive() const;
116 UFUNCTION(BlueprintCallable, Category=Particles, meta=(DeprecatedFunction))
117 ENGINE_API virtual void SetTemplate(class UParticleSystem* NewTemplate);
118 UFUNCTION(BlueprintCallable, Category="Particles|Parameters", meta=(DeprecatedFunction))
119 ENGINE_API void SetFloatParameter(FName ParameterName, float Param);
120 UFUNCTION(BlueprintCallable, Category="Particles|Parameters", meta=(DeprecatedFunction))
121 ENGINE_API void SetVectorParameter(FName ParameterName, FVector Param);
122 UFUNCTION(BlueprintCallable, Category="Particles|Parameters", meta=(DeprecatedFunction))
123 ENGINE_API void SetColorParameter(FName ParameterName, FLinearColor Param);
124 UFUNCTION(BlueprintCallable, Category="Particles|Parameters", meta=(DeprecatedFunction))
125 ENGINE_API void SetActorParameter(FName ParameterName, class AActor* Param);
126 UFUNCTION(BlueprintCallable, Category="Particles|Parameters", meta=(DeprecatedFunction))
127 ENGINE_API void SetMaterialParameter(FName ParameterName, class UMaterialInterface* Param);
128 // END DEPRECATED
129
130
131 ENGINE_API void AutoPopulateInstanceProperties();
132
133 //~ Begin UObject Interface
135 //~ End UObject Interface
136
137
138 //~ Begin AActor Interface
139 ENGINE_API virtual void PostActorCreated() override;
140 ENGINE_API virtual void PostInitializeComponents() override;
141#if WITH_EDITOR
142 ENGINE_API virtual void CheckForErrors() override;
143 ENGINE_API virtual bool GetReferencedContentObjects( TArray<UObject*>& Objects ) const override;
144 //~ End AActor Interface
145
151#endif
152
153public:
155 class UParticleSystemComponent* GetParticleSystemComponent() { return ParticleSystemComponent; }
156#if WITH_EDITORONLY_DATA
158 class UBillboardComponent* GetSpriteComponent() const { return SpriteComponent; }
160 class UArrowComponent* GetArrowComponent() const { return ArrowComponent; }
161#endif
162};
163
164
165
@ Normal
Definition AndroidInputInterface.h:116
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define DECLARE_DYNAMIC_MULTICAST_DELEGATE_FourParams(DelegateName, Param1Type, Param1Name, Param2Type, Param2Name, Param3Type, Param3Name, Param4Type, Param4Name)
Definition DelegateCombinations.h:80
#define DECLARE_DYNAMIC_MULTICAST_DELEGATE_NineParams(DelegateName, Param1Type, Param1Name, Param2Type, Param2Name, Param3Type, Param3Name, Param4Type, Param4Name, Param5Type, Param5Name, Param6Type, Param6Name, Param7Type, Param7Name, Param8Type, Param8Name, Param9Type, Param9Name)
Definition DelegateCombinations.h:125
#define DECLARE_DYNAMIC_MULTICAST_DELEGATE_ThreeParams(DelegateName, Param1Type, Param1Name, Param2Type, Param2Name, Param3Type, Param3Name)
Definition DelegateCombinations.h:71
#define DECLARE_DYNAMIC_MULTICAST_DELEGATE_SixParams(DelegateName, Param1Type, Param1Name, Param2Type, Param2Name, Param3Type, Param3Name, Param4Type, Param4Name, Param5Type, Param5Name, Param6Type, Param6Name)
Definition DelegateCombinations.h:98
#define UPROPERTY(...)
UObject definition macros.
Definition ObjectMacros.h:744
#define UFUNCTION(...)
Definition ObjectMacros.h:745
#define GENERATED_UCLASS_BODY(...)
Definition ObjectMacros.h:768
#define UCLASS(...)
Definition ObjectMacros.h:776
uint32_t uint32
Definition binka_ue_file_header.h:6
Definition Actor.h:257
Definition Emitter.h:56
class UParticleSystemComponent * GetParticleSystemComponent()
Definition Emitter.h:155
Definition NameTypes.h:617
Definition MaterialInterface.h:296
virtual FString GetDetailedInfoInternal() const
Definition Object.h:215
virtual COREUOBJECT_API void GetLifetimeReplicatedProps(TArray< class FLifetimeProperty > &OutLifetimeProps) const
Definition Obj.cpp:5874
Definition ParticleSystem.h:160
Definition PhysicalMaterial.h:104
Definition Color.h:48
Definition ObjectPtr.h:488