How to swap material using widget?

Hey SpynderMK
I have done in my First person camera still not working, it seems complicated.
In Fact I am not looking for line tracer. I just want a clickon the object(trigger) to open the widget.
we have to swap the material with the widget.

Any way thank you for your patience for guiding me.