stormingdecker
4 months agoPartner
How to control playback of Popcorn particle FX from typescript?
Sorry, first time building in MH. I've been trying to integrate an explosion from the public assets library (one of those PopcornFX asset types), but I haven't found out a way to start and stop playback of the particle effect from code.
Casting to a ParticleGizmo obviously doesn't work, and the play() method doesn't resolve. I'm assuming under-the-hood it's an external Unity asset using a sprite sheet. I haven't found any documentation on this.
How do I sent playback events to it?
Thanks a lot!!
The ParticleGizmo should work, as long as you have a prefab selected in the gizmo (it defaults to empty). If you are still experiencing issues with this, feel free to share your code and I'll try to replicate on my end.