Any way to receive events from tsparticles? #2468
-
Hi there, I'm using react-tsparticles so I was picturing something like:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @htopia, I was thinking about events, but it's not a thing yet. You can access the emitter plugin instance using this code: |
Beta Was this translation helpful? Give feedback.
Hi @htopia,
I was thinking about events, but it's not a thing yet.
You can access the emitter plugin instance using this code:
container.plugins.get("emitters")
(container
is the parameter returned in theloaded
event or using thecontainer
ref property of the<Particles />
component. There's anarray
property containing all the emitters loaded, maybe it could help for now.