How do I get a 2d cursor to interact with 3d objects from a third person view?

I’m trying to design a point and click system using a cursor in my 3d platformer so i have a cursor on a 2d layer but the cursor doesn’t interact with anything on the 3D layer. how would I get the 2d cursor to interact with the 3d layer?

You can use the 3D raycast extension.