Quantcast
Channel: Answers for "Coding a Particle System to play when a GameObject hits ground."
Viewing all articles
Browse latest Browse all 4

Answer by froYo

$
0
0
Hey, The problem you seem to be having here is that you aren't referencing the particle you wish to use. For example: var particle : ParticleSystem; function OnTriggerEnter(col:Collider) { if(gameObject.tag == "Player") { particle.Play; } } Then you would drag the particle that you have created and want to play into the variable "particle" on the inspector. Also you would need to set the particle to not play on awake so it doesn't play when you don't want it to. Hope this helps :)

Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>