Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

Untiy particle system play

public GameObject hitEffect;

GameObject effect = Instantiate(hitEffect, transform.position, Quaternion.identity);
effect.GetComponent<ParticleSystem>().Play();

//Delay destruction of the effect
Destroy(effect, 5f);
 
PREVIOUS NEXT
Tagged: #Untiy #particle #system #play
ADD COMMENT
Topic
Name
8+3 =