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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

Compare Input touch location with Actor Location

I'm trying to create an input touch when the player touches the character on screen. However when i compare the InputTouch Location to the get actor location it is not working. Is the input touch location different from the world location?

Product Version: UE 4.7
more ▼

asked May 22 '15 at 06:21 PM in Blueprint Scripting

avatar image

47 15 16 26

avatar image LuLima May 22 '15 at 08:53 PM

Alright, i found out there are nodes that convert that to me. There are 2 from what i've seen. the first 'Get Screen Location to World Space' and Convert Mouse Location to World Space. But i can't seem to instantiate those nodes in my character blueprint. Do i need something specific or have they become deprecated? alt text

8326-untitled.png (26.6 kB)
avatar image tkrz Oct 22 '15 at 02:32 PM

To make it work you have to have target set to player controller i think. Just like on the screen attached. It is for touch, however it should work with mouse also.

alt text

avatar image Allar Oct 22 '15 at 02:44 PM

I believe this will only work for mouse if in your Project Settings under Input you have Use Mouse for Touch enabled.

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

0 answers: sort voted first
Be the first one to answer this question
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