Change Color of Raycast-Colliding object

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

Hello, I’m doing a raycast and I want to change the color of the object that the raycast hits, how can I do that?

:bust_in_silhouette: Reply From: Magso

Use get_collider() to get the node the ray has hit, then change it’s color either by altering the albedo color or the material’s texture.