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"

UMG How to make a button appear where i touched the Screen

Hey guys, i've being searching around for a answer like this and came around to posts that answer this question.

https://answers.unrealengine.com/questions/119848/how-would-i-go-about-making-a-movable-window.html https://answers.unrealengine.com/questions/131177/umg-incorrectly-positioning-widgets.html

However, after doing everything it still doesn't work. Is there any special layout configurations that i must do on widgets? As said by trudy i've setted that anchor to the top left, but i anchored 3 buttons in that situation. Can someone shed some light please? alt text alt text

Product Version: UE 4.8
Tags:
more ▼

asked Aug 01 '15 at 01:53 PM in Blueprint Scripting

avatar image

LuLima
52 16 16 26

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

1 answer: sort voted first

Hi,

it's simple, here are steps:

  1. create new widget BP and make inside it one large image covering all space and set it's visibility to "hidden" like this https://yadi.sk/i/Bm4TVk3fiDXNT

  2. in same detail panel on left scroll down and press event button creation, select "create binding"

  3. after this should appear BP editing for this event, here you'll have "my geomenty" uotput pin, to get click coords just use "absolute to local" or visa versa depending on needs, afte this use "break" to get values - they should be the click point https://yadi.sk/i/wjYKqV-1iDXWZ

  4. when you need catch user presses on screen just create this widget, note that presses will be tracked even without mouse visible on interface, if you want show mouse use "Show Mouse Cursor"

p.s. to enlarge pictures right click it and select "open in new tab", answerhub doesn't handle this yet in 1 click on image

don't forget mark question as answered with little gray circle button under any answer (not comment, but whole answer) when problem solved, so anyone else later can have same question and may find solution faster, if you find solution on your own, don't forget write it too

more ▼

answered Aug 01 '15 at 07:30 PM

avatar image

happyhorror
576 54 46 72

avatar image LuLima Aug 07 '15 at 04:42 PM

Your way works too, but i read again the answer given by Rudy and it served better. Thanks for the help dude. Here is a image on how i solved it too. https://answers.unrealengine.com/storage/attachments/21464-draghelp3.png

(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