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

One-shot particle causes error

Discussion in 'Editor & General Support' started by gameproducer, Feb 22, 2010.

  1. gameproducer

    gameproducer

    Joined:
    Jan 23, 2010
    Posts:
    25
    When I create a new gameobject Other > Particle system and tick the "one shot" mode, it starts causing error.

    Here's a screen recording about this issue:
    http://screenr.com/SJx

    Any idea what's causing this? And what the error is about?
     
  2. oxl

    oxl

    Joined:
    Nov 21, 2008
    Posts:
    325
    Hi,
    would file a bugreport, since I've seen similar errors in other posts and in my own bug report , too.

    --
    oxl
     
  3. Wox

    Wox

    Joined:
    Dec 14, 2009
    Posts:
    93
    Oh it's from there that error comes, always wonder what was causing it.
     
  4. Don-Gray

    Don-Gray

    Joined:
    Mar 18, 2009
    Posts:
    2,278
    It isn't really "one shot" either, it keeps doing the one shot over and over and over again (infinitely).
     
  5. fallingbrickwork

    fallingbrickwork

    Joined:
    Mar 16, 2009
    Posts:
    1,072
    isn't there an auto-destruct check box so it gets destroyed after it's done it's 'one shot'?

    Matt.
     
  6. Don-Gray

    Don-Gray

    Joined:
    Mar 18, 2009
    Posts:
    2,278
    The particle emitter is supposed to be destroyed after it's one shot? Dunno, I see no difference in having the auto-destruct selector selected or not, still continues to do the one shot perpetually.
     
  7. fallingbrickwork

    fallingbrickwork

    Joined:
    Mar 16, 2009
    Posts:
    1,072
    It works for me in Unity iPhone Basic, One shot + autodestruct kills the particle emitter after playing once... not tried Unity 2.6
     
  8. andeeeee

    andeeeee

    Joined:
    Jul 19, 2005
    Posts:
    8,768
    It's worth pointing out here that the one shot feature and the autodestruct only apply to the game at runtime. A one shot generator will repeat every few seconds in the editor to enable you to keep seeing the effect without switching the one shot flag on and off each time. Similarly, an object that had the autodestruct working in the editor would need to be recreated each time the effect had finished. These things should work at runtime, unless you are finding otherwise.
     
  9. oxl

    oxl

    Joined:
    Nov 21, 2008
    Posts:
    325
    Thanks andeeee fot the explanation,
    are there any other words for the error message in the console ?

    --
    oxl
     
  10. Don-Gray

    Don-Gray

    Joined:
    Mar 18, 2009
    Posts:
    2,278
    "the one shot feature and the autodestruct only apply to the game at runtime"

    Makes sense, thanks, hadn't checked that.