Detect click on 3D object with mouse captured

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By R9_dev

I want to detect if the 3D object is pressed, but I can’t do it with mouse captured. Can anyone help me?

:bust_in_silhouette: Reply From: zhyrin

It indeed doesn’t work as you would expect.
You can add a Raycast3D child to your camera, trigger or query it when you clicked.

Thank you!!!

R9_dev | 2023-02-16 12:35