Unity3D Touch触摸属性的使用方法.docx

上传人:牧羊曲112 文档编号:3168020 上传时间:2023-03-11 格式:DOCX 页数:2 大小:37.24KB
返回 下载 相关 举报
Unity3D Touch触摸属性的使用方法.docx_第1页
第1页 / 共2页
Unity3D Touch触摸属性的使用方法.docx_第2页
第2页 / 共2页
亲,该文档总共2页,全部预览完了,如果喜欢就下载吧!
资源描述

《Unity3D Touch触摸属性的使用方法.docx》由会员分享,可在线阅读,更多相关《Unity3D Touch触摸属性的使用方法.docx(2页珍藏版)》请在三一办公上搜索。

1、Unity3D Touch触摸属性的使用方法学IT技能上我学院网 Unity3D Touch触摸属性的使用方法 Touch 触摸 struct in UnityEngine Description 描述 Structure describing the status of a finger touching the screen. 描述手指触摸屏幕的状态的结构。 Devices can track a number of different pieces of data about a touch on a touchscreen, including its phase (ie, wheth

2、er it has just started, ended or moved), its position and whether the touch was a single contact or several taps. Furthermore, the continuity of a touch between frame updates can be detected by the device, so a consistent ID number can be reported across frames and used to determine how a particular

3、 finger is moving. 设备可以跟踪触摸屏上的多个触摸,包括它的相位、它的位置和是否有单个或多个触摸点。此外,触摸之间的帧更新连续性能由设备检测,因此,一致的ID能跨帧报告,并用了确定指定手指移动了多少。 The Touch struct is used by Unity to store data relating to a single touch instance and is returned by the Input.GetTouch function. Fresh calls to GetTouch will be required on each frame upd

4、ate to obtain the latest touch information from the device but the fingerId property can be used to identify the same touch between frames. 触摸结构用于通过Unity存储与单个触摸实例相关数据并由Input.GetTouch函数返回。新调用GetTouch需要在每帧更新从设备获得最新的触摸信息,但fingerId属性能用于识别帧之间的相同的触摸。 See Also: Input.GetTouch, TouchPhase enum. Variables 变量

5、 deltaPosition The position delta since last change. 自最后改变的位置增量。 deltaTime Amount of time that has passed since the last recorded change in Touch values. 触摸值自上次改变已经过去的时间量。 The unique index for the touch. fingerId Unity3D|Cocos|php|HTML5|Java|ios|Android|C#|AS3|UI设计|原画设计|动漫美术|游戏策划 学IT技能上我学院网 用于触摸的唯一索引。 phase position tapCount Describes the phase of the touch. 该触摸相位的描述。 The position of the touch in pixel coordinates. 像素坐标系,触摸的位置。 Number of taps. 触摸轻触的次数。 Unity3D|Cocos|php|HTML5|Java|ios|Android|C#|AS3|UI设计|原画设计|动漫美术|游戏策划

展开阅读全文
相关资源
猜你喜欢
相关搜索
资源标签

当前位置:首页 > 生活休闲 > 在线阅读


备案号:宁ICP备20000045号-2

经营许可证:宁B2-20210002

宁公网安备 64010402000987号