help with topdown raycast?

i want to cast a ray from shootpoint to my mouse point and detect anything inbetween. best iv been able to do is either using colliders and no raycast, or raycast enables me to click on the enemy but doesnt detect if i click past and its in the way… help?

Add debug logs and check layers etc.
You do need colliders for raycasts to work.

Without any code or aditional info we cannot help.

Also, this is a scripting question, not URP