Input.GetTouch()方法

来源:互联网 发布:淘宝网购物压缩袋 编辑:程序博客网 时间:2024/06/06 12:14

官方链接(英文)


所属API

monoBehavior || input


代码块

语法

public static Touch GetTouch(int index);

index标志触控次数,比如说,用户有多次手势触控,则用index区分,利用index分别对不同时候的手势进行事件响应。

作用

Returns object representing status of a specific touch. (Does not allocate temporary variables).

返回值

一个Touch结构体.
As an example the Touch returned with the pressure.