VR trigger the text when overlap

How should I edit to achieve the task of pop-up subtitles close to the object?