Programmatically Enable/Disable Shurikan Particle Collision Module

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]

Do this:

	ps = GetComponent<ParticleSystem>();
	var collision = ps.collision;
	collision.enabled = false;

Like stated in the documentation.

Notice that that is different than doing this:

	ps.collision.enabled = false;

So badly… Unfortunately there is no any way to get CollisionModule (and others) from script that will be compiled.
For example, I need in planes for CollisionModule to restrict my particle rays PROGRAMMATICALY!

Did you try this

myParticleSystem.GetComponent<CollisionModule>().Enabled = false;