PopcornFX Events

The PopcornFX events bus has the same use as the emitter component events bus, but is used for standalone emitters.

Return type

Description

void

OnFxCreated(StandaloneEmitter *emitter) `Triggered when the standalone effect has been created.
`emitter
is the pointer to the standalone emitter.

void

`OnFxDisabled(StandaloneEmitter *emitter) `Triggered when the standalone effect has been disabled.

emitter is the pointer to the standalone emitter.

Warning: This function is not completly implemented for now.

void

OnFxBroadcastEvent(SBroadcastParams *broadcastParams) `Triggered when an effect export an event to the game engine. `SBroadcastParams contains the exported event name.
In this callback, you can use the PopcornFXIntegrationBus::Handler::GetCurrentPayloadValue to retrieve the current event payloads (values transferred from the PopcornFX nodegraph to the engine).