In Unity, I can set the enabled flag of a component to false, and this prevents Unity from running the Update method of the component.
However, Unity still runs other methods of the component, such as OnTriggerEnter2D.
Is there a way to completely disable a component (without removing it), such that it does not get any events at all?
Of course I can manually add a flag to my component, and check this flag from within the event handlers, but I would like to know if there is a built-in solution.
SetActive(false)? \$\endgroup\$