How to make a interactive element highlight

Im new to developing, and im having trouble warping my head around how to go about how to do it. Im trying to make a VR element that highlights when looked at. and also making text appear with it. I have found out a way to accomplish this but i don’t know how to connect the tags using code

This tutorial explains how you can do object outlining and also contains a download link for a sample project.

This thread from some days ago contains some recommendations on how to interact with objects based on the gaze (activate by looking at them):

If you put the two together you should end up with what you need. You can also study how the effect was done in Robo Recall by downloading the Mod Kit and going through it (maybe not super easy if you are just starting).