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 to Double Tap to view blend possess pawn

I have a level with several pawns in it for various purpose. The main pawn is an orbit camera which looks over the whole level from aerial. The second pawn is a normal camera with only rotation, like a 360 view camera, copied over a few times.

I want to blend view target the 360 pawn when I double tap on it. I can set the blend view target with TouchBegin Event but there's no double tap event.

alt text

Note: I am using UltimateTouchComponents to implement touch interface.

Product Version: UE 4.19
Tags:
more ▼

asked Sep 13 '18 at 12:19 PM in Blueprint Scripting

avatar image

nitron64
8 1 2 9

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

1 answer: sort voted first

There is no double tap event but you can detect double tap for yourself:

Create two vars, a float named lastTouchTime and a ETouchIndex named lastTouchIndex. On your BeginTouch event, first thing you do is check whether Game Time minus lastTouchTime is less than say, 0.5 seconds. If it is, AND ETouchIndex equals the BeginTouch event's touchindex, then branch to true. On the true branch do your double click logic. On false do single click logic. When both true and false branches are done, set lastTouchIndex to the BeginTouch event's touchindex, and set lastTouchTime to Game time Seconds (or whatever it is called. There is a node for it)

more ▼

answered Nov 29 '18 at 01:35 AM

avatar image

mightyenigma
3.8k 18 20 20

(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