Using the Vive's motion controllers as mouse input for a webbrowser
Hi I'm pretty new to Unreal Engine, so I might miss some crucial information here. What I did so far: I managed to create a webbrowser widget blueprint and actor. I placed that in my level and I can see it. I have a giant floating browser in my scene and I can see it update in real time. What I want is to be able, to "click" on it with my vive's motion controller. The website I use is a big canvas, on which you can draw with the mouse, so you can think of it as a big whiteboard. So when I draw on it with another client I see it in my game. This is working great.
What I tried so far is creating a vr pawn as the tutorial stated. Then I made a basic teleportation for my right hand controller with LineTraceForObject which works great. I just teleport to the point where I hit a static object. (My floor) Now I thought it should be similiar with the browser. It's a dynamic object, so I remade it for the left motion controller.
Where I'm stuck is: how can I send a mouse down event when I hold down my trigger, to the coords my motion controller "hits" the webbrowser actor witht he LineTraceForObjects?
I attached a screenshot with my blueprint so far. This is what worked great for teleportation.
Thanks in advance for any help with this! Morfium
answered Sep 01 '16 at 01:13 PM
one day ago unreal engine 4.13.0 was released that introduced the "official" version of the plugin mentioned by indygood. It's called "widget interaction component", see the documentation.
To get it working, simply
Result will look
answered Sep 02 '16 at 12:39 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here