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"

Interacting with Widget ingame with mouse

Hey folks.

So I have it so the player can interact with computers within the game. HOWEVER, while I have got it so the camera moves in to focus on the computers screen when its interacted with and the mouse is enabled, I cannot get it so the mouse can interact with the widget.

The image I have attacched should make it clearer what I mean. alt text

Now I am not entirely ignorant of unreal engine updates and I am aware that in 4.13 they changed it so you cannot click directly on Widgets, hence, I am wondering what I should do. Normally I would spend some time working this out myself but I simply do not have the time at the moment to do so hence I am turning to you knowledgeable folks :).

(Maybe attatch an interaction component to the player then forward the input to the interaction component??? Not entirely sure how I would implement that?)

Product Version: UE 4.14
notworking.png (333.6 kB)
more ▼

asked Jan 09 '17 at 09:27 PM in Blueprint Scripting

avatar image

8 2 5

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

2 answers: sort voted first

Hello WillApted,

I have provided a couple of links that I believe will get you pointed in the right direction. I would suggest setting the source for the widget interaction component to "Mouse" and then set up the Press Pointer Key and the Release Pointer Key to use the Mouse events as needed. I hope this information helps.

Docs: https://docs.unrealengine.com/latest/INT/Engine/UMG/UserGuide/WidgetInteraction/

Other Thread: https://answers.unrealengine.com/questions/480136/3d-umg-widget-stopped-working-in-413.html

Make it a great day

more ▼

answered Jan 10 '17 at 08:14 PM

avatar image

Rudy Q ♦♦ STAFF
47.3k 545 132 525

avatar image WillApted Jan 10 '17 at 09:23 PM

Alright, thanks lol. I had actually tried almost as suggested... just hadnt set the interaction source as 'mouse'... derp. Sometimes I feel c++ would just be more simple :D...

For others out there, here is a quick throw together so you know a crude solution :P: alt text

capture1.jpg (252.0 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

Try setting a beginplay node on the BP that calls the UMG/Widget and set input mode to Game & UI?

more ▼

answered Jan 10 '17 at 07:00 PM

avatar image

51 1 2 1

(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