Cannot instantiate objects with particle materials
I'm trying to add particle effects using the materials provides in Snap's Particles template to a prefab. Weirdly, if I drag the prefab into the scene, it works just fine. The particle effects trigger as expected. But when instantiated via a script, they do not.
Is there something special about scripting particle effects? These are ordinary material graphs as far as I can tell and shouldn't need to be explicitly started or anything like that.
Wait... I'm using spawn duration and it appears this counts from the beginning of the lens? Yikes. Is there a way to count from instantiation?
I think the external time option will be what you want. There is a short scripting example for it here: https://lensstudio.snapchat.com/guides/general/particles/