There is no ParticleSystem in c# script when I disable the wind module

I am enable the particlesystem module and disable the wind module, but I can not access the particle system in the c# code anymore.
The unity 2018.3.1b1 is OK to do this.

Im not sure I understand.
What do you mean by enabling the particle system module and disabling the wind module? What do you mean by modules?

How can you not access the c# code, do you have errors? Can you show screenshots?

He means, when you enable the ParticleSystem module from the package manager, but disable the Wind module from the same place, you cannot reference ParticleSystem class from code anymore.
See here : Script compilation issues upon upgrading to 2018.3.0b2

The Particle System uses the wind module in it’s external forces module. So if you disable wind then it will need to also remove particles. We will look into just disabling the external forces part instead of the whole thing.

We just ran into this problem as well - I don’t recall removing Wind from our project, I believe the ugprade process had Wind disabled at first.

I think i may have disabled wind a long time back but tbh dont remember, so, it came as a shock that this solves this error - it was far from logical…

Along those same lines, it would be nice to at least get some notification that the wind module is needed to make particles work (Has this always been the case? I only started having troubles after updating from 2018.3.0b2 to 2018.3.0b3).

With some of the other new features, I would get an error saying exactly which package was needed in order to fix the error. This one I just had 2 days of swearing and unfruitful google searches until I stumbled across the solution in this thread.

1 Like

Same issue when updating from 2018.2.10f1 to 2018.2.11f1. I have ParticleSystem* reference in link.xml and it took me an hour to figure out why strip code started to strip this class after upgrade.

1 Like

FYI we have logged this: Unity Issue Tracker - [particles] Removing the wind module disables particles

2 Likes

When I upgraded to 2018.2.13f1 I was forced to enable Wind to include ParticleSystem in code. However - with the wind module included, suddenly my carefully calibrated hinge joints went to hell :frowning: How can I fix this without waiting for the next upgrade?

You’ll need to report a bug about that

1 Like