How do you use enable.emission for particles in 5.3?

I updated to 5.3 and it says that enableEmission is deprecated and to use enable.emission instead. I cannot find any documentation on how to use the new format. Could somebody please help.

I’m using 5.3.4f1 and the code above does not work – it compiles without warning, but setting em.enabled does not actually affect the particle system emission.

The Unity manual does show the code above as an example; perhaps it used to work and they broke it when they changed some classes to struct to reduce gc?. (As noted here Unity5.3.0f4 ParticleSystem emission property is readonly, enableEmission property is deprecated. - Questions & Answers - Unity Discussions it was bizarre that it ever worked if em is a struct)

I had to revert my code back to the old deprecated method:

ps.enableEmission = enableEmission;

Hi, check out this page: Unity - Scripting API: ParticleSystem.emission

ParticleSystem ps = GetComponent<ParticleSystem>();
var em = ps.emission;
em.enabled = true;

Hey bro use system.emission.enabled