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"

How can I convert touch location to absolute coordinate?

I've tried like below. alt text

and got this result.

absolute size: X=2079.936 Y=1266.158

local size: X=1774.353 Y=1080.134

absolute coord: X=441.000 Y=204.100 - X=2520.936 Y=1470.258

GetMousePositionOnPlatform: X=2519.000 Y=1469.000

Touch Location(local): X=1385.333 Y=843.267 Z=1.000

Touch location(abs) by GetViewportWidgetGeometry: X=2064.918 Y=1192.596

It seems touch location is local coordinate of SVerticalBox Geometry. (when play in editor)

How can I get SVerticalBox geometry?

It's not the same with return value of GetViewportWidgetGeometry.

alt text

Product Version: UE 4.18
Tags:
touchlocation.jpg (651.2 kB)
touchlocation2.jpg (23.6 kB)
more ▼

asked Feb 20 '18 at 09:41 AM in Blueprint Scripting

avatar image

Dominic Lee
6 1 2

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

1 answer: sort voted first
more ▼

answered Mar 13 '19 at 09:23 PM

avatar image

needforgrib
26 2 3 6

(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