Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Is there a way to turn off/on particle collision through a script?

$
0
0
I have a particle effect that collides with objects in the world. However, when it is instantiated I want it to check for conditions, and if it is in those conditions turn off the collision detection. Is there a way to access the collision properties (and other properties) of a shuriken ParticleSystem through a script?

My second option to do this would be to have 2 prefabs, one with collision and one without, but I would like to do it simply.

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



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