Godot Version
Question
<!- I want to detect the 2d object I click on. So i am using raycast2d on mouse click. The object is Area2d with box collisionshape2d. Godot doesn’t detect any collision at all. I got the code from a yt tutorial and it was a gdscript code. I modified it to c#. I know the code work through; checked with Draw raycast method. Here is all my object setting and code.
→