Color Changing Objects while in 1st person or 3rd person with mouse and GUI

I have searched high and low with no luck. I have a basic layout of an office. I want to create a GUI with color swatches and as I walk around the room in 3rd person with mouse and keyboard, be able to click on a wall and change its color. Any youtube videos or tutorials on how to do this.

There are lots of tutorials of static object changing, but not while in first person

Thanks
Anthony

well 3rd person selection is “usually” done via a raycast through the mousePosition, for 1st person it’s a raycast through the center point of the screen (i.e. width/2, height/2).

You should be able to find plenty of tutorials on “selecting” gameobject in the scene during runtime with raycasts