How do I detect if the player is looking at an object?

Did your object has any scene component? if so, try to look for a variable on it called “Is Visible”. And tell us if that suits your situation.