Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Gesture recognizer scripts for Unity based on Input and EventSystem handlers

License

NotificationsYou must be signed in to change notification settings

gilzoide/unity-gesture-recognizers

Repository files navigation

openupm

Touch/pointer gesture recognizer scripts based onEventSystem handlers orInput.

Implemented gestures:

  • Tap (configurable number of touches and taps)
  • Long press (configurable number of touches, press duration)
  • Pan (configurable number of touches)
  • Pinch (configurable number of touches, at least 2)
  • Twist (configurable number of touches, at least 2)
  • Swipe (configurable number of touches, supported directions, minimum distance, minimum velocity)
  • Edge pan (configurable number of touches, supported edges, maximum distance from edge)

Gesture recognizers are implemented as pure C# classes and can be used with your own touch input data.

Recognizers based onEventSystem can be used in uGUI-based UIs, as well as physics objects if your Camera hasPhysicsRaycaster orPhysics2DRaycaster components.

Recognizers based onInput detect gestures anywhere in the screen or a configurable portion of it.

How to install

This package is available on theopenupm registry and can be installed using theopenupm-cli:

openupm add com.gilzoide.gesture-recognizers

Otherwise, you can install directly using theUnity Package Manager with the following URL:

https://github.com/gilzoide/unity-gesture-recognizers.git#1.0.0

About

Gesture recognizer scripts for Unity based on Input and EventSystem handlers

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp