x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

VR - Can't interact with 3D widget with the left motion controller

Hello!,

I have a problem in my VR scene, i have two motion controller and i created a 3d widget in my scene with a button with a number that increases when clicked . The button work perfectly with the right controller but when i click on it with the left, my blueprint detect the click but the number does not increase. And it's like the left controller doesn't exist because when i aim the button, the button it's not hover.

I don't know what is the problem, i do the same things like the function grab on the blueprint.

I think the problem come to the sort of raycast/linetrace by the left controller because when i aim the button with the right controller and click with the left controller the number increase, so i don't think it's a blueprint problem.

Thank you in advance for your help.

Product Version: UE 4.16
Tags:
01.jpg (622.4 kB)
02.jpg (582.1 kB)
more ▼

asked Jun 15 '17 at 02:02 PM in Blueprint Scripting

avatar image

Hidar
6 1 1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

4 answers: sort voted first

Hey Friend, refer to my image, somehow you need to change you second widget interactions 'virtual user index' to a different number compared to the other widget interaction in the other hand. The way I have it in my image works for me but looks as if you are doing it slightly different but good luck.

alt text

capture.jpg (217.7 kB)
more ▼

answered Jun 21 '17 at 03:21 PM

avatar image

matty_matt_mattmatt
1 1 1

avatar image SebastianJonas Jun 27 '17 at 09:34 AM

thats right, but when you use the VRTemplate the left controller is "spawned" at event begin play so you cant attach something on the components tab. The WidgetInteraction will be on both motion controllers and even hover and click works but when you click with the left motion controller, its like the event does not get fired.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

I found the solution, a friend got the same problem and its a bug... on the menu just use "on pressed" not "on klicked" works for me :)

more ▼

answered Jun 27 '17 at 11:31 AM

avatar image

SebastianJonas
21 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Hi guys, thanks for the reply but it's doesn't work for me.

My problem is when I aim the widget with the left controller it's like the raycast bug and i need to spam my button for interact with the widget. I don't know why because it's works perfectly with the right controller and i did the same for both.

more ▼

answered Jul 04 '17 at 07:16 AM

avatar image

Hidar
6 1 1 2

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

You have to set both Virtual User Index and Pointer Index to 1.

If you're using the VR template, put this in Begin Play (that's a collapsed node). Leave the default values at 0.

alt text

capture.jpg (142.7 kB)
more ▼

answered Sep 05 '18 at 09:05 PM

avatar image

Ixiguis
1.2k 58 61 253

avatar image Alexees Oct 24 '18 at 07:34 AM

I tested this and it's sufficient to only set the Pointer Index to a different number on the right controller

avatar image the-real-patrick Apr 23 '19 at 06:09 PM

yes, that's a step. Also, if your trigger of the left controller can't work without the right pointer, you need to uncheck "consume input" on the "MotionController (X) Trigger" nodes.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question