Unity3D - Replay a non-looping Particle System

后端 未结 3 1536
借酒劲吻你
借酒劲吻你 2021-01-23 05:28

I\'m following the Survive Shooter Unity3D tutorial and have come across several inconsistencies between the Unite Day presentation and actual behavior in Unity 5.3, such as ani

相关标签:
3条回答
  • 2021-01-23 06:10

    If you need to reset immediately Particle system and repeat it (For example Rifle barel explosion) I would recommend you this:

    ShootParticles.Simulate( 0.0f, true, true );
    ShootParticles.Play();
    
    0 讨论(0)
  • 2021-01-23 06:15

    If you're using Unity 5.3.1, then it sounds very much like a bug(http://issuetracker.unity3d.com/issues/particle-system-plays-only-once).

    0 讨论(0)
  • 2021-01-23 06:26

    To reply the ParticleSystem try to use ParticleSystem.Emit(...) with parameters that suits your animation like:

    hitParticles.Emit(5);
    
    0 讨论(0)
提交回复
热议问题