Attention | Topic was automatically imported from the old Question2Answer platform. | |
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?
Attention | Topic was automatically imported from the old Question2Answer platform. | |
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?
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.