In this lesson i don’t fully understand why after setting up Play and Stop for the particle system why it doesn’t just work. And why you have to check whether particle system isPlaying to play it. Shouldn’t it just start playing whenever you hit spacebar anyways? Why is the isPlaying if statement needed? Thanks
Hi jellyBones,
If we call Play on an AudioSource or ParticleSystem which are already playing, they restart. In the case of the AudioSource, you would be hearing a “click” instead of the expected sound clip, and in the case of the ParticleSystem, it might be that we would not see any particles or particles each frame.
Feel free to remove the condition with isPlaying
to see what happens.
Did this clear it up for you?
See also:
- Forum User Guides : How to mark a topic as solved
Hi thank you great response - it makes sense to me now thanks!
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.