Describe the bug
Hidden entities can be selected with the mouse, because although sprite renderer is disable, colliders are not disabled, so it is a problem when there is a hidden unit near one visible unit, doing some times impossible select the visible unit.
[IMPORTANT] How can we reproduce the issue, step by step:
I have tested it in ummorpg2d remastered, with mobs dead interfering in selection of visible mobs.
Expected behavior
Hidden entities shouldn't interfere with selection of Visible entities.
Desktop (please complete the following information):
Describe the bug Hidden entities can be selected with the mouse, because although sprite renderer is disable, colliders are not disabled, so it is a problem when there is a hidden unit near one visible unit, doing some times impossible select the visible unit.
[IMPORTANT] How can we reproduce the issue, step by step: I have tested it in ummorpg2d remastered, with mobs dead interfering in selection of visible mobs.
Expected behavior Hidden entities shouldn't interfere with selection of Visible entities.
Desktop (please complete the following information):