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"

multi touch enable in mobile(Android) ???

I have two Objects in my scene which move with my finger but when i press on the first one and then press on the second( Still pressing the first )

The second object goes to the first object ( ) which means one finger touches the two object

what can i do to avoid this problem ????????????

Product Version: UE 4.9
Tags:
more ▼

asked Nov 07 '15 at 07:35 AM in Using UE4

avatar image

ziad yossry
3 1 3 5

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

1 answer: sort voted first

I think this is what you're looking for. Touch1 is whichever finger presses the screen first and stays that way until it is removed. Touch2 becomes the second finger and so on. Try only moving the object if you detect it is Touch1 that's interacting with the screen.

Multi Touch

multitouch.png (37.4 kB)
more ▼

answered Nov 09 '15 at 09:57 AM

avatar image

Triblade
369 10 79 33

avatar image ziad yossry Nov 09 '15 at 02:21 PM

can i make it with ( on input touch begin ) or if i used this node how can i make it for an object ??

avatar image ziad yossry Nov 09 '15 at 02:25 PM

and what if i want to move the 2 objects at the same time ???

avatar image Triblade Nov 09 '15 at 03:27 PM

If I've got this right, and you want to move object #1 with one finger and then object #2 with another?:

When 'Pressed' is called, store the object that you want to associate with 'Touch1'. When 'Moved' is called, if it's still 'Touch1', update the location of that object. When 'Released' is called, clear the stored object. Repeat for 'Touch2' and a second a object.

Regarding the other part of your question - Looking at 'on Input touch begin' - I'm not sure to be honest. With the method I suggested above, you probably need some logic to detect which object you've selected. Maybe you could mix the methods.

Either way, I hope this helps you find a solution. Good luck.

(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