Advanced Touch in UnrealEngine4 (Swipe, Double Tap…)

May 10, 2016·
Akbolat Sadvakassov
Akbolat Sadvakassov
· 2 min read

Overview

Hey there!

In this post I would like to share with you with plugin that extends functionality of mobile UE4. This plugin includes implementation of Swipe, Double Tap and Single Tap. P.S. I’m not an author of it.

Link to download –> Github

Works on 4.9, 4.10, 4.11 versions of UE4.

Installing

In first, make sure that you’ve installed Visual Studio 2015. Then download an archive from the link above

Now in your project. If you use only Blueprints. You need to create an empty C++ class.

To do that, go to File and click New C++ class…

There select None and click Next

Then Create Class

It will take some time, after that Visual Studio will be opened. When it done compiling close it and project.

Now find where your project is placed. In project folder create a new folder “Plugins” and move there Swipe-master folder from archive. Rename Swipe-master to Swipe.

Open project. And it will ask you next:

Click Yes. It will take a while.

Open Project Settings, on the left side find General Settings. Then change value of Game Viewport Client Class to SwipeViewportClass inside Default Classes.

We’ve done installing.

Using

To use Swipe, Tap, etc. nodes you need add Swipe component, in Components panel inside your Blueprint.

In MyBlueprint panel select Swipe and in Details panel you’ll be able to use event-nodes.

Some of events have 2d Vector(Start Location, Trigger Location, End Location) and Integer(Handle) parameters.

Also you can configure Swipe sensitivity.

That’s all. If you have a question, feel free to ask!

Thanks!


It’s a mirror from WebArchive