Skip to content

Any way to receive events from tsparticles? #2468

Closed Locked Answered by matteobruni
htopia asked this question in Q&A
Discussion options

You must be logged in to vote

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 the loaded event or using the container ref property of the <Particles /> component. There's an array property containing all the emitters loaded, maybe it could help for now.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by matteobruni
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants