编辑器/功能拓展
道具
Unity 2019
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版本与新的Unity输入系统完全兼容!有关说明,请参阅readme.txt文件。
#1手势资产
在Unity中,手指是Unity触摸输入和手势处理的最佳选择。手指手势是功能集中的首选,价格低廉,易于使用的架构和教程视频。Fingers适用于所有Unity平台。如果你已经使用了原生移动Android或iOS手势,那么你就可以在家里使用Fingers了。
示例项目
有时间,我会添加示例。我从一个简单的文字游戏开始,随着时间的推移,我将在此基础上添加更多项目!
坚如磐石,被成千上万的应用程序使用
Unity的手指触摸手势已在多个Unity促销和教程视频中亮相。成千上万的客户也同意,手指是Unity中触摸和手势处理的最佳资产。手指是经过考验、真实和战斗考验的。
完整手势框架
使用Fingers,您可以获得所有常用的内置触摸手势。这包括:点击、双击、长按、平移、旋转、缩放和滑动手势。此外,创建自己的自定义手势简单易行。代码得到了大量演示场景和教程视频的好评。
操纵杆和DPad
手指包含非常强大和可配置的屏幕控制,包括操纵杆和d-pad。操纵杆有许多选项,包括死区、输入曲线、跟随触摸等,可以微调行为。所有屏幕上的控件都可以配置为活动和空闲状态。
Unity UI集成
Fingers与Unity UI和事件系统配合得很好。阻止按钮上的手势或将手势限制在UI元素或其他游戏对象上很容易。可以设置Collider 2D掩码,以确保手势仅在屏幕的某些部分开始。
移动控件
手指包含屏幕上的控制,如d-pad和操纵杆,非常适合手持设备。第一人称和第三人称控制器也是内置的,只需放入一个预制件,你就可以开始了!
虚拟触摸
使用简单的虚拟触摸界面,轻松从AR、VR或任何其他来源注入自己的触摸。手指可以在任何环境或系统中工作。
设计时手势-无代码!
在检查器中添加手势从未如此简单。只需从组件菜单中添加并配置手势即可。将回调设置为脚本,就完成了!平移/旋转/缩放和拖放很简单。提供了这些场景的内置脚本和演示场景。CrossPlatformInputManager集成可用于操纵杆和dpad控件。
图像/形状识别
手指包含图像识别手势。只需几分钟的调整,您就可以识别圆形、闪电、复选标记和字母X等形状。您甚至可以一次性批量导入任意数量的png图像,以便立即为这些图像创建图像识别脚本。
使用鼠标缩放/旋转预览
即使没有触摸屏,在播放器中预览手势也很容易。只需使用shift和control键加上鼠标滚轮来模拟捏合和旋转手势,以及每个按钮来模拟不同的手指。
建立在坚实的设计模式之上
Fingers的架构与iOS的UIGestureRecognizer相似,但它是使用所有C#代码构建的,可以在任何有鼠标或触摸屏的平台上轻松运行。
同步和独家手势
手势可以同时执行或单独执行(默认设置)。此外,手势可能需要其他手势才能失败(例如需要双击才能失败的点击)。
单位制
默认情况下,手指使用英寸来测量特定阈值的距离,但这可以通过手势上的属性进行更改。
Unity遥控器
在Unity Remote中使用Fingers时,您可能希望通过脚本属性暂时禁用鼠标操作。
使用手指手势的应用程序
-T3D创世纪
-熊猫艾迪玩&学
以下是付费版本中包含的一些组件/演示:
-示例项目!列表包括简单的文字游戏模板。更多功能和示例项目将在未来推出!-点击、双击、长按、滑动、缩放、旋转、图像识别。
-用贝塞尔曲线绘制线条
-第一人称控制员
-第三人控制员
-3D相机轨道
-3D相机或物体旋转/环顾四周——想想第一人称相机。-3D相机移动,如地图应用程序
-动态观察和放置对象,放置/移动对象会暂停动态观察。
-在AR/VR中放置平面或物体
-画布手势
-设计时(无代码)手势
-D-pad
-拖放Unity UI元素
-拖放二维对象
-拖放三维对象
-拖动并滑动离开
-图像/OCR识别器
-具有平稳跟随、动力等特性的操纵杆。
-同时使用两个操纵杆。
-同时使用两个带有遮蔽区域的操纵杆。
-用一根手指平移移动,用另一根手指点击射击。
-一键式缩放x和y轴
-一键式刻度x或y轴
-一次拖动多个对象
-同时用多个手指轻击
-一次拖动/旋转/缩放多个对象
-平台控制(通过平台跳跃、移动、下降)
-将手势限制为游戏对象
-围绕对象/锚点旋转
-要求手势失败(点击/双击)
-画布和世界空间物体手势相结合
-仅使用C#代码的UIScrollView控件
-平移和变焦相机
-双击重置游戏对象的旋转和缩放
-点击内容视图外部将其关闭
-多种平移手势
|
|