Why do we use a Collider2D?

I’m curious why we used a BoxCollider2D to define the clickable area of the game screen. Isn’t this the sort of task that should be assigned to the UI Canvas? Also, is the BoxCollider2D going to be wasting resources listening for collisions, which we aren’t interested in here?

Hi Chris,

Whether we use the Canvas or a collider: Both are listening for input.

Did this answer your question?


See also:

Nina, thanks for your swift reply. That does answer my question.

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

Privacy & Terms