Detect if player looks at an object?

How can I set a boolean on objects that are looked at in the viewport active?

If the player looks with the camera on one of a few objects a variable should change and make the camera target to it. As well it should make a video texture play on that object. How can I detect which objects are focused or almost focused by the camera?

If you make an collider with istrigger and get all the collisions? Or ou can set an invisible object in the middle of your caracter vision and use it like mouseclick to get the object… I don’t know if you understood :\