Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

ParticleSystem.Stop() not working

Discussion in 'Scripting' started by Tekksin, Sep 23, 2018.

  1. Tekksin

    Tekksin

    Joined:
    Oct 20, 2013
    Posts:
    32
    I call it from
    void OnParticleCollision ()
    and it works perfectly.

    But on a script where i reference the component and run ParticleSystem.Stop(), it does not work at all. And it's not a reference problem because I am sending other info to the particle system in question and those are operating fine. .Stop doesn't though, and I'm wondering why it wouldn't?

    Also, is there an alternative to stopping them?
    ParticleSystem.Stop(true, ParticleSystemStopBehavior.StopEmittingAndClear) stops it, but I want the subemitters to play.