【更新】Fingers - Touch Gestures for Unity 3.0.12 手势
New Input System Compatible
Fingers Gestures as of version 3.0.0 is fully compatible with the new Unity input system! See the readme.txt file for instructions.
#1 Gesture Asset
Fingers is your best choice for Unity touch input and gesture handling in Unity. Finger gestures is tops in feature set combined with low price and easy to use architecture and tutorial videos. Fingers works on all Unity platforms. If you've used native mobile Android or iOS gestures, you will be right at home with Fingers.
Example Projects
I am adding examples as I have time. I've started with a simple word game and will build on it and add more projects over time!
Rock Solid, Used by Thousands of Apps
Fingers - Touch Gestures for Unity has been featured in multiple Unity promotions and tutorial videos. Thousands of customers also agree, Fingers is the best asset for touch and gesture handling in Unity. Fingers is tried, true and battle tested.
Full Gesture Framework
With Fingers, you get all the common touch gestures you are used to built in. This includes: tap, double tap, long tap, pan, rotate, scale and swipe gestures. In addition, creating your own custom gestures is simple and easy. Code is well commented with tons of demo scenes and tutorial videos.
Joystick and DPad
Fingers contains very robust and configurable on-screen controls including joystick and d-pad. The joystick has numerous options including dead zones, input curves, following the touch, etc. to fine tune the behavior. All on-screen controls can be configured with active and idle states.
Unity UI integration
Fingers works great with Unity UI and the event system. Blocking gestures over buttons or restricting gesture to UI elements or other game objects is easy. Collider2D masks can be setup to ensure gestures only start over certain parts of the screen.
Mobile Controls
Fingers contains on screen controls like d-pad and joystick, great for hand-held devices. First person and third person controllers are also built right in, just drop a prefab in and you are ready to go!
Virtual Touches
Easily inject your own touches from AR, VR or any other source using the simple virtual touch interface. Fingers can work with any environment or system.
Design Time Gestures - No Code!
Adding gestures in the inspector has never been easier. Simply add from the component menu and configure your gesture. Set the callback to your script and you are done! Pan/rotate/scale and drag and drop is simple. Built in scripts for these scenarios, with demo scenes are provided. CrossPlatformInputManager integration is available for the joystick and dpad controls.
Image / Shape Recognition
Fingers contains image recognition gestures. With a few minutes of tweaking, you can recognize shapes like circles, lightning bolts, check marks and the letter X. You can even bulk import as many png images as you want in one go to instantly create image recognition script for those images.
Zoom / Rotate Preview with the Mouse
Previewing gestures in the player is easy, even without a touch screen. Just use the shift and control key plus mouse wheel to simulate pinch and rotate gestures, along with each button to simulate a different finger.
Built on Solid Design Patterns
Fingers has a similar architecture to UIGestureRecognizer from iOS, but is built using all C# code and will easily run on any platform that has a mouse or touch screen.
Simultaneous and Exclusive Gestures
Gestures can be executed simultaneously or exclusively (the default). In addition, gestures can require other gestures to fail (such as a tap requiring a double tap to fail).
Unit System
Fingers uses inches by default to measure distances for certain thresholds, but this can be changed via properties on the gestures.
Unity Remote
When using Fingers with Unity Remote, you may want to temporarily disable mouse handling via script property.
Apps using Fingers Gestures
- T3D Genesis
- Panda Addie Play & Learn
Here are some of the components / demos included in the paid version:
- Example projects! List includes simple word game template. More features and example projects to come in the future! - Tap, double tap, long tap, swipe, pinch/zoom, rotate, image recognition.
- Draw lines following the touch with bezier curve
- First person controller
- Third person controller
- 3D camera orbit
- 3D camera or object rotate / look around - think 1st person camera. - 3D camera movement, like map apps
- Orbit and place objects, placing/moving objects pauses the orbit.
- Place plane or object in AR/VR
- Canvas gestures
- Design time (no code) gestures
- D-pad
- Drag and drop Unity UI element
- Drag and drop 2D objects
- Drag and drop 3D objects
- Drag and swipe away
- Image / OCR recognizer
- Joystick with smooth follow, power, etc.
- Two joysticks at once.
- Two joysticks at once with masking areas.
- Move by panning with one finger, tap to fire with other finger.
- One touch scale x AND y axis
- One touch scale x OR y axis
- Drag many objects at once
- Tap with more than one finger at once
- Drag/rotate/scale many objects at once
- Platform control (jump, move, drop down through platforms)
- Restrict gestures to game object
- Rotate around an object / anchor point
- Require gesture to fail (tap / double tap)
- Canvas and world space object gestures combined
- UIScrollView control with only C# code
- Pan and zoom camera
- Double tap to reset rotation and scale of game object
- Tap outside a content view to dismiss it
- Multiple pan gestures
兼容新的输入系统
从3.0.0版本开始,Fingers Gestures与新的Unity输入系统完全兼容! 请看readme.txt文件的说明。
#1号手势资产
Fingers是您在Unity中进行触摸输入和手势处理的最佳选择。手指手势在功能设置上是顶尖的,结合了低价格和易于使用的架构和教程视频。Fingers可以在所有的Unity平台上运行。如果你使用过原生的移动Android或iOS手势,你会对Fingers感到很满意。
项目实例
我在有时间的时候会增加一些例子。我从一个简单的文字游戏开始,随着时间的推移,我将在此基础上增加更多的项目。
坚如磐石,被数以千计的应用程序所使用
Fingers - Touch Gestures for Unity已经在多个Unity促销活动和教程视频中出现。成千上万的客户也同意,Fingers是Unity中触摸和手势处理的最佳资产。Fingers是久经考验的,真实的,经过战斗考验的。
完整的手势框架
有了Fingers,你可以得到所有你习惯的内置的普通触摸手势。这包括:轻击、双击、长击、平移、旋转、缩放和滑动手势。此外,创建你自己的自定义手势也很简单和容易。代码的注释很好,有大量的演示场景和教程视频。
操纵杆和DPad
Fingers包含非常强大和可配置的屏幕控制,包括操纵杆和D-pad。操纵杆有许多选项,包括死区、输入曲线、跟随触摸等,以微调其行为。所有的屏幕控制都可以配置为激活和空闲状态。
Unity UI整合
Fingers与Unity UI和事件系统的配合非常好。屏蔽按钮上的手势或将手势限制在用户界面元素或其他游戏对象上是很容易的。Collider2D掩码可以被设置,以确保手势只在屏幕的某些部分开始。
移动控制
手指包含在屏幕上的控制,如d-pad和操纵杆,非常适合手持设备。第一人称和第三人称控制器也是直接内置的,只要把预制件放进去就可以使用了。
虚拟触摸
使用简单的虚拟触摸界面,轻松地从AR、VR或任何其他来源注入你自己的触摸。手指可以在任何环境或系统中工作。
设计时的手势--无需代码!
在检查器中添加手势从未如此简单。只需从组件菜单中添加并配置你的手势。将回调设置为你的脚本,你就完成了! 平移/旋转/缩放和拖放都很简单。为这些场景提供了内置的脚本,并提供了演示场景。跨平台输入管理器(CrossPlatformInputManager)可用于操纵杆和dpad控件的集成。
图像/形状识别
手指包含图像识别手势。通过几分钟的调整,你就可以识别出圆形、闪电、复选标记和字母X等形状。你甚至可以一次性批量导入任意多的png图片,为这些图片立即创建图像识别脚本。
用鼠标进行缩放/旋转预览
在播放器中预览手势很容易,即使没有触屏。只要用shift和control键加上鼠标滚轮来模拟捏和旋转的手势,再加上每个按钮来模拟不同的手指。
建立在坚实的设计模式之上
Fingers的架构与iOS中的UIGestureRecognizer相似,但它是用全部C#代码构建的,可以轻松地在任何有鼠标或触摸屏的平台上运行。
同步和独占手势
手势可以同时或单独执行(默认)。此外,手势可以要求其他手势失败(比如轻击需要双击才会失败)。
单位系统
Fingers默认使用英寸来测量某些阈值的距离,但这可以通过手势的属性来改变。
统一远程
当把Fingers和Unity Remote一起使用时,你可能想通过脚本属性暂时禁用鼠标处理。
使用Fingers手势的应用程序
- T3D Genesis
- 熊猫阿迪玩与学
下面是付费版本中包含的一些组件/演示。
- 项目实例! 列表中包括简单的文字游戏模板。更多的功能和示例项目将在未来推出! - 点击,双击,长击,滑动,捏住/缩放,旋转,图像识别。
- 用贝塞尔曲线绘制跟随触摸的线条
- 第一人称控制器
- 第三人称控制器
- 三维摄像机轨道
- 三维相机或物体旋转/环视--想想第一人称相机。- 三维相机移动,就像地图应用一样
- 绕行和放置物体,放置/移动物体会暂停绕行。
- 在AR/VR中放置平面或物体
- 画布手势
- 设计时间(无代码)手势
- D-pad
- 拖放Unity UI元素
- 拖放2D物体
- 拖放三维物体
- 拖动并扫开
- 图像/OCR识别器
- 具有平滑跟随、动力等功能的操纵杆
- 一次性使用两个操纵杆
- 一次性两个操纵杆,有遮挡区域。
- 用一个手指划动移动,用另一个手指点击发射。
- 一键缩放x和y轴
- 一键缩放x轴或y轴
- 拖动许多物体
页:
[1]