![]() |
ezEngine Release 26.3
|
#include <ParticleEventReaction_Prefab.h>

Public Attributes | |
| ezPrefabResourceHandle | m_hPrefab |
| ezEnum< ezSurfaceInteractionAlignment > | m_Alignment |
Protected Member Functions | |
| virtual void | ProcessEvent (const ezParticleEvent &e) override |
Protected Member Functions inherited from ezParticleEventReaction | |
| void | Reset (ezParticleEffectInstance *pOwner) |
| Initializes the reaction with a reference to the owning effect instance. | |
Additional Inherited Members | |
Public Member Functions inherited from ezReflectedClass | |
| virtual const ezRTTI * | GetDynamicRTTI () const |
| bool | IsInstanceOf (const ezRTTI *pType) const |
| Returns whether the type of this instance is of the given type or derived from it. | |
| template<typename T > | |
| EZ_ALWAYS_INLINE bool | IsInstanceOf () const |
| Returns whether the type of this instance is of the given type or derived from it. | |
Static Public Member Functions inherited from ezNoBase | |
| static const ezRTTI * | GetStaticRTTI () |
Protected Attributes inherited from ezParticleEventReaction | |
| ezTempHashedString | m_sEventName |
| Hashed event type name for fast comparison. | |
| ezUInt8 | m_uiProbability |
| Probability value (1-100) for triggering this reaction. | |
| ezParticleEffectInstance * | m_pOwnerEffect = nullptr |
| The effect instance that owns this reaction. | |
Event reaction that instantiates a prefab.
When triggered, spawns the configured prefab at the event's position and orientation. The prefab can be aligned according to the event's direction and normal vectors.
|
overrideprotectedvirtual |
Called when a matching event occurs and the probability check passes.
Derived classes implement the actual reaction behavior (e.g., spawning an effect).
Implements ezParticleEventReaction.