Hi,
sorry for the delay
here we go, please find attached a sample showing a very easy solution for checking when an object or a wall is in the way.
simply use a trigger that follows the player and look at the camera, then you can catch anything getting in the way and decide what to do with it, in this case hiding, but it could be something else. with this technic you don't need any complex raycasting or setup.
Let me know if this is suitable for you, I did not implemented dotween, you just do switch from changing color to tweening.
Let me know if you have questions
Bye,
Jean