- Home /
How to use particle system,PARTICLE SYSTEM
I am fairly new to unity coding, and I am having trouble making my particle system play as soon as the game plays. i have made a few different codes, but I can't show them since I deleted them. please tell me how to use 2-d particle system at the start of game? ,
Answer by Ryyanlayyne · 9 hours ago
public GameObject FireworksAll; void OnCollisionEnter (Collision coll) { if (coll.collider.CompareTag ("Player")) { Explode (); } } void Explode () { GameObject firework = Instantiate(FireworksAll, position, Quaternion.identity); firework.GetComponent().Play(); }
Your answer
Follow this Question
Related Questions
Adjusting OnTriggerEnter2D() for OnParticleTrigger() 0 Answers
Particle texture sheet frame is showing previous frame's 1px line on particle. 0 Answers
Changing the color of individual particles 0 Answers
NoobQuestion: Help With Particles - Simple 2 Answers
ParticleSystem interpolates position when moved and off 1 Answer