Problem with custom mouse cursor

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

Hi All. I am using Input.set_custom_mouse_cursor(my_cursor) to change the cursor graphic when it’s hovering over a certain type of node (in 3D). I’m shooting a raycast from the mouse to get the node it collides with.

Problem:
This only works when the camera is not moving. My (interpolated) camera follows the player. When it’s standing still, the hovering works as expected - the cursor updates its icon when hovered over the node type. BUT, when the player starts moving and the camera starts following it and I do the hovering, it the icon does not update.

Any ideas on what I may be doing wrong?