How to handle clicking on a 3D object?

Godot Version

4.2

Question

I am making a game with RTS mechanics.
Please help me to make it so that to handle clicking on a 3D object. I understand that almost all or even all the guides on this topic are outdated or I don’t understand something.

If the object is a CollisionObject3D (like an area or a physics body) enable CollisionObject3D.input_ray_pickable and implement its CollisionObject3d._input_event() or connect to its signal CollisionObject3D.input_event

Thanks!

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