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"

Hit result under finger is always returning null or 0

My code works on a PC, but when I try and catch a touch event instead of a click event and cast a hit result from that (on an android device) the location is 0 no matter where I touch, and the actor is null no matter what I'm pressing over. any ideas?

Product Version: Not Selected
Tags:
more ▼

asked Oct 02 '14 at 03:04 PM in Blueprint Scripting

avatar image

Asher S Einhorn
650 93 79 180

avatar image Adam Davis STAFF Oct 02 '14 at 05:38 PM

Hi SirYakalot,

How are you calling the hit result and attempting to get the information under it? What version of the editor are you currently using?

avatar image Asher S Einhorn Oct 02 '14 at 07:16 PM

4.4.3. I am getting the touch event as I print a string from a branch which is checking for a finger index that equals 'touch1'. After that I'm piping in the data from a 'get hit result under finger by channel', I'm breaking the hit result and printing the data. The setup is exactly the same as the mouse version that works, the only difference is the finger by channel / cursor by channel. Thanks for any help you can give me!

avatar image Adam Davis STAFF Oct 03 '14 at 05:11 PM

Hi SirYakalot,

Which data are you looking for from the break hit result? Do any of the outputs register or are none of them registering data?

(comments are locked)
10|2000 characters needed characters left

2 answers: sort voted first

For some bizarre reason the solution was selecting the correct texture format for the android device. I had been using the untagged one, I switched to ATC and now it works. Strange. Hopefully this will help someone in the future if they encounter this problem.

more ▼

answered Oct 15 '14 at 06:15 PM

avatar image

Asher S Einhorn
650 93 79 180

avatar image Janyx Jul 19 '17 at 05:45 AM

Could you provide anymore details? I am having the same issue and I tried switching the textures but it is still always (0,0)

avatar image henbull May 14 '18 at 02:30 AM

Did anyone ever resolve this? Having a similar issue.

(comments are locked)
10|2000 characters needed characters left

Hi SirYakalot,

We have not heard from you in quite some time. I am marking this thread as answered for tracking purposes. If you are still experiencing this error, please reply with the requested information. Thank you!

more ▼

answered Oct 08 '14 at 08:24 PM

(comments are locked)
10|2000 characters needed characters left
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