ezEngine Release 26.3
Loading...
Searching...
No Matches
ezParticleEventReaction_Prefab Class Referencefinal

#include <ParticleEventReaction_Prefab.h>

Inheritance diagram for ezParticleEventReaction_Prefab:

Public Attributes

ezPrefabResourceHandle m_hPrefab
 
ezEnum< ezSurfaceInteractionAlignmentm_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 ezRTTIGetDynamicRTTI () 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 ezRTTIGetStaticRTTI ()
 
- 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.
 
ezParticleEffectInstancem_pOwnerEffect = nullptr
 The effect instance that owns this reaction.
 

Detailed Description

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.

Member Function Documentation

◆ ProcessEvent()

void ezParticleEventReaction_Prefab::ProcessEvent ( const ezParticleEvent e)
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.


The documentation for this class was generated from the following files: