Since upgrading to 5.4, I get this error in-game:
![ParticleSystem.EmissionModule error.][1]
Which points to this code:
![My code.][2]
Particularly, the highlighthed line. It looks like caching the emission module to my own variable is still fine, but attempting to set a property on it, not so much. I know this whole module interface is a recent entry to the Unity scripting, but it really appears to be broken in 5.4.
I can't seem to find anything on google about this error. The error is lying, I am getting the module from a pre-existing ParticleSystem instance.
[1]: /storage/temp/75768-error.jpg
[2]: /storage/temp/75769-source.jpg
↧