Have Action Occur if the Player Looks at a Target and Presses Button on Headset


I’m developing an app for Gear VR in which the person using the headset can view a series of panoramic pictures. I have the panoramic pictures set up and they work fine but I’m trying to find a way to have the blueprint change the image to the next image if the user looks at a target in the level and presses the button on the side of the headset. I would also like to have a text bubble pop up to describe the next image when the user hovers over the target as well. Any ideas on how this could be done would be appreciated.

I used the following node: “LineTraceForObjects” on my playerController

Documentation here:

Thanks for the link! I’ve got the directional check done, so the blueprint knows where it is pointing but I can’t find documentation on how to access the control pad and button on the side of the Gear headset. Does anyone have any advice on that?

The touchpad is exactly the same as a touchscreen - so you can use “InputTouch”
The back button is exactly the same as the android back button so you can use: “Android Back” but only if you disable the default Oculus behaviour. See: [GearVR] Back Button behavior no longer as expected in 4.11 P6 - UE4 AnswerHub

Thanks Aussie, I appreciate the help.

aussieburger, the touchpad, in my experience, doesn’t work as a touchscreen. “InputTouch” will register my touch event, but if I output a print string with the location of the touch, it will always read the center of the screen. Same setup easily tracks both mouse and touch location. Do you have any experience with spotting when you’re sliding up/down and back/front?

I used this for doing basic swipe left/right up/down controls: