Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

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);
 
PREVIOUS NEXT
Tagged: #partical #system #destroy #finishing
ADD COMMENT
Topic
Name
1+6 =