What is the most efficient way of detecting an object? Using raycast, rect (screen space) or utilizing a capsule collider?

I am developing a mobile game and I wanted the program to be as light as it can be. Thanks in advance :slight_smile:

Raycasts.

Of course, it can get fairly complicated depending on the situation and problems you want to solve. But raycasting is lightest of them all. Screen space should be pretty light since it’s practically a raycast through the screen.