All Projects → getsetgames → Swipe

getsetgames / Swipe

Licence: mit
A plugin for Unreal Engine 4 that exposes swipes on mobile devices as events in blueprint.

Projects that are alternatives of or similar to Swipe

Gltfforue4
Import glTF 2.0 in Unreal Engine
Stars: ✭ 145 (+59.34%)
Mutual labels:  ue4, plugin
Socketio Client Ue4
socket.io client plugin for Unreal Engine 4
Stars: ✭ 451 (+395.6%)
Mutual labels:  ue4, plugin
Audio recorder
Stars: ✭ 156 (+71.43%)
Mutual labels:  plugin, mobile
Nativescript Geolocation
Geolocation plugin to use for getting current location, monitor movement, etc
Stars: ✭ 127 (+39.56%)
Mutual labels:  plugin, mobile
Metrica Plugin Xamarin
Xamarin plugin for Yandex AppMetrica SDK
Stars: ✭ 12 (-86.81%)
Mutual labels:  plugin, mobile
Slinky
A light-weight, responsive, mobile-like navigation menu plugin
Stars: ✭ 649 (+613.19%)
Mutual labels:  plugin, mobile
React Phone Input 2
📞 Highly customizable phone input component with auto formatting
Stars: ✭ 446 (+390.11%)
Mutual labels:  mobile, input
Framework7 Plugin 3d Panels
Framework7 plugin to add 3d effect for side panels
Stars: ✭ 56 (-38.46%)
Mutual labels:  plugin, mobile
Blueprintsound
A plugin for Unreal Engine 4 that surfaces sound-related functionality to Blueprint.
Stars: ✭ 6 (-93.41%)
Mutual labels:  ue4, plugin
Input Overlay
Show keyboard, gamepad and mouse input on stream
Stars: ✭ 684 (+651.65%)
Mutual labels:  plugin, input
Steambridge
A UE4 implementation of the Steamworks API.
Stars: ✭ 48 (-47.25%)
Mutual labels:  ue4, plugin
Uinavigation
A UE4 plugin designed to help easily make UMG menus navigable by mouse, keyboard and gamepad
Stars: ✭ 88 (-3.3%)
Mutual labels:  ue4, plugin
Sketch Dockpreview
A Sketch plugin that lets you preview your current artboard in the Dock.
Stars: ✭ 90 (-1.1%)
Mutual labels:  plugin
Evscript
A tiny sandboxed Dyon scripting environment for evdev input devices that lets you do e.g. xcape in Wayland
Stars: ✭ 91 (+0%)
Mutual labels:  input
Wordpress Seo
Yoast SEO for WordPress
Stars: ✭ 1,301 (+1329.67%)
Mutual labels:  plugin
A File Icon Idea
Atom File Icons plugin for IntelliJ IDEA products
Stars: ✭ 90 (-1.1%)
Mutual labels:  plugin
Wordpress Qcloud Cos
💾 使用腾讯云对象存储服务COS作为附件存储空间的WordPress插件。QQ交流群:887595381
Stars: ✭ 91 (+0%)
Mutual labels:  plugin
Vue Raven
vue-raven automatically reports uncaught JavaScript exceptions triggered from vue component
Stars: ✭ 91 (+0%)
Mutual labels:  plugin
Teepay
Typecho 个人支付宝、微信收款插件
Stars: ✭ 90 (-1.1%)
Mutual labels:  plugin
Constantine
A plugin for Clang compiler
Stars: ✭ 89 (-2.2%)
Mutual labels:  plugin

Swipe

A plugin for Unreal Engine 4 that exposes touches and swipes on mobile devices as events in blueprints. This allows you to respond to swipes on a touchscreen as if they were buttons being pressed.

Setup

1. Integration

There are a couple of different ways to integrate this plugin into your project. You can include it in your fork of the UE4 engine or you can include it in a single UE4 code-based project if you like.

In your engine

This method includes the plugin in your fork of the UE4 engine. It allows you to use the plugin in either code or blueprint-based projects that are created with your fork of the engine. It assumes you have already cloned the UE4 engine to a directory on your machine.

  1. Clone this repo to a subfolder of your engine called /Engine/Plugins/Swipe folder. Optionally, you can add it as a submodule.
  2. Run the GenerateProjectFiles script in the Engine root.
  3. Open your engine project file and build the editor.

In your code project

This method includes the plugin in a single code-based project. This can be done on any code-based project that is created using the Github source engine or the one provided by Epic via the launcher.

  1. Clone this repo to a subfolder in your project called /Plugins/Swipe.
  2. Open your project. You will be prompted to build missing modules.
  3. Select Yes to rebuild now.

2. Enable the Plugin

Ensure that the plugin is enabled:

  1. In the editor, select Plugins from the Window menu.
  2. Search for the plugin called Swipe. It's in the Input category.
  3. Check the Enabled checkbox on the plugin. You may have to restart the editor after this step.

EnableThePlugin

3. Set Your Game Viewport Client Class

This plugin includes a subclass of the UGameViewportClient class called USwipeViewportClient which you will need to use as your project's Game Viewport Client Class. Do this by going to Project Settings > Engine > General Settings. In the Default Classes section, you will see an option called Game Viewport Client Class. Select SwipeViewportClient, like so:

GameViewportClientClass

4. Add the Swipe Component to an Actor

Add a component called Swipe to any Actor blueprint that you would like to receive swipe input events.

AddTheComponent

5. Add Events to the Graph

With the component selected, you can add touch and swipe events to the graph from it's detail pane.

AddTheComponentEvents

6. Respond to the Events in the Graph

Now that the events are in the graph, you can respond to them like so:

Swipe Events

SwipeEvents

Swipe events notify the actor when a swipe has been triggered. The location on screen where the swipe began as well as the location at which point the swipe was triggered are passed into the event.

Events are also fired for when swipes have ended (when the player has released their finger from the screen after triggering a swipe). These events include the same start and trigger locations as the swipe events but also include the location where the swipe ended.

Touch Events

TouchEvents

Touch events notify the actor when a touch begins, moves and ends. The location of the touch is passed into the event.

7. Adjust Swipe Sensitivity

You can adjust how sensitive swipe events are in your Project Settings. Navigate to Project Settings > Plugins > Swipe and modify the Minimum Swipe Distance setting to your liking.

SwipeSettings

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].