I’m expecting there to be a:
myParticleSystem.GetComponent<ParticleSystem>().CollisionModule.Enabled = false;
but unfortunately there isn’t, in fact, I can’t seem to programmatically access any of the particle modules. So far the only way I can enable/disable collision is by manually clicking the Collision Module > Enabled property in the inspector. Essentially what I’m looking for is to have an option for the player to enable/disable particle collision, for performance reasons
I’ve considered using two different particle systems, the only difference being one has the Collision Module enabled, and the other doesn’t. That however seems kind of ridiculous, considering there is a checkbox for it right there on the ParticleSystem Module…
Any ideas?
Thanks!
[17684-screen+shot+2013-11-09+at+11.06.56+am.png|17684]