Answers for "how to make a partical system to destroy itself after it finishing"

C#
1

how to make a partical system to destroy itself after it finishing

GameObject explosion = Instantiate(_Explosion, transform.position, Quaternion.identity);
            Destroy(explosion, explosion.GetComponent<ParticleSystem>().main.duration);
Posted by: Guest on November-04-2020
0

c# delete particle system after finished

Destroy(gameObject, GetComponent<ParticleSystem>().startLifetime);
Posted by: Guest on August-27-2020

Code answers related to "how to make a partical system to destroy itself after it finishing"

C# Answers by Framework

Browse Popular Code Answers by Language