1 物体选择
1.1 LeanSelect
This component allows you to select LeanSelectable components
此方法允许你选择物体(需要在待选物体上挂上LeanSelectable脚本)
1.2 LeanSelectable
This component makes this GameObject selectable.
To then select it, you can use LeanSelect and trigger the selection from LeanFingerTap or similar.
此组件使物体可选择.
要想选定物体, 你可以使用LeanSelect脚本并将使事件由LeanFingerTap脚本触发
1.3 LeanSelectableBehaviour
This script makes handling selectable actions easier.
此脚本使处理可选择对象的行为更容易
1.4 LeanSelectableGraphicColor
This script allows you to change the color of the Graphic (e.g. Image) attached to the current GameObject.
此脚本允许你改变吸附在当前物体上的物体颜色
1.5 LeanSelectableRendererColor
This script allows you to change the color of the Renderer attached to the current GameObject
此脚本允许你改变吸附在当前物体上的渲染器的颜色.
1.6 LeanSelectableSpriteRendererColor
This script allows you to change the color of the SpriteRenderer attached to the current GameObject
此脚本允许你改变吸附在当前物体上的Sprite渲染器的颜色
2 缩放 平移和旋转物体
2.1 LeanTranslate
This script allows you to translate the current GameObject relative to the camera.
此脚本允许您将当前GameObject相对于相机进行转换。(似乎只能移动, 在与相机正向射线垂直的平面上移动)(不用和其它脚本连起来)
2.2 LeanRotate
This script allows you to transform the current GameObject
此方法允许你transform(旋转 平移 缩放)当前物体 (感觉跟上面那个差不多)
2.3 LeanRotateCustomAxis
This component allows you to rotate the current GameObject around a specific local axis using finger twists
此方法允许你旋转当前对象, 围绕着特定的本地轴, 使用手指拧
2.4 LeanScale
This script allows you to scale the current GameObject
此脚本允许你缩放当前物体(不用和其它脚本连起来)
2.5 LeanCanvasArrow
This script rotates the current GameObject based on a finger swipe angle
此脚本根据手势轻扫角度旋转物体. (参数是Vector2 delta)
3 相机移动事件
3.1 LeanCameraMove
This script allows you to track & pedestral this GameObject (e.g. Camera) based on finger drags
本脚本允许你基于手指拖动跟踪和(步行?)某对象.
个人理解: 移动的是相机, 但是看起来像是物体在动
3.2 LeanCameraZoom
This script allows you to zoom a camera in and out based on the pinch gesture. This supports both perspective and orthographic cameras.
此脚本允许使用捏合手势缩放相机. 支持透视相机和正交相机.
4 短按 长按和轻扫
4.1 LeanFingerHeld
This script fires events if a finger has been held for a certain amount of time without moving
此脚本在手指按住屏幕一段时间(并且手指没有移动)后触发事件
4.2 LeanFingerSwipe
This script fires events if a finger has been held for a certain amount of time without moving
此脚本在手指按住一定时间后触发事件.
4.3 LeanFingerTap
This script calls the OnFingerTap event when a finger taps the screen
此脚本在手指Tap屏幕时调用OnFingerTap事件
5 绘制轨迹事件
5.1 LeanFingerTrail
This script will draw the path each finger has taken since it started being pressed
此脚本绘制手指开始按下后每一个手指的路径.
5.2 LeanFingerLine
This script will modify LeanFingerTrail to draw a straight line
此脚本将修改(继承)LeanFingerTrail以绘制直线
6 三大基本事件
6.1 LeanFingerDown
This script calls the OnFingerDown event when a finger touches the screen
此脚本在手指触摸屏幕时调用OnFingerDown方法.
6.2 LeanFingerSet
This script calls the OnFingerSet event while a finger is touching the screen
此脚本当手指正在触摸屏幕的时候.调用OnFingerSet事件
6.3 LeanFingerUp
This script calls the OnFingerUp event when a finger stops touching the screen
此脚本在手指离开屏幕时调用OnFingerUp方法
7 其它功能
7.1 LeanSpawnAt [生成预制件]
This component allows you to spawn a prefab at a single point
此组件允许你在某一点生成一个预制件
7.2 LeanTouchEvents [输出日志]
This script will hook into event LeanTouch event, and spam the console with the information
此脚本将勾住LeanTouch的事件, 并向控制台输出事件日志
7.3 LeanOpenUrl [打开URL]
无官方注释. 代码是Application.URL(string url);
7.4 LeanDestroy [销毁物体]
This script will automatically destroy this GameObject after 'Seconds' seconds
If you want to manually destroy this GameObject, then disable this component, and call DestroyNow
此脚本会在seconds秒之后自动销毁物体.
如果想要手动销毁物体, 可以先disable这个物体, 然后调用DestroyNow
8 不认识的组件
8.1 LeanPath
This component stores a list of points that form a path
此方法存储构成路径的一系列点.
8.2 LeanPlane
This component stores information about a 3D plane
此组件存储3D平面的信息.
8.3 LeanScreenDepth
This struct allows you to convert from a screen point to a world point using a variety of different methods
此结构允许你使用不同的方法把屏幕坐标转换为世界坐标. (转换方法参见官方文档, 我翻译了)