Found a bug during the testing process

While testing my code after the refactor process I found out that upon crashing the ParticleSystem is not disabled, Why are the thruster particles still being emitted if the movement script is disabled upon crashing?

Hi Ammar,

Welcome to our community! :slight_smile:

The components are usually not connected with one another, especially not with our own component. If we disable our component (= the Movement component), it does not automatically disable the ParticleSystem component. Neither does anything else.

We either have to disable the entire game object or we have to explicitely disable the particle system component. If we do the former, all components on the game object and its children get disabled, so the question is always: Do we still need the other components? If the answer is no, disabling the entire game object is fine. If not, we have to disable only those components we want to disable.

Is this what you wanted to know?


See also:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms