Skip to content

Touch (JavaScript) ​

Touch ​

Scripting Name:Insight.Touch

触屏交互管理类。

Properties ​


deltaPosition ​

type :Insight.Vector2

(只读)当前帧位置与上一帧位置的插值。

phase ​

type :string

(只读)当前状态,参见 TouchPhase。

position ​

type :Insight.Vector2

(只读)当前触屏的位置。

Methods ​


toString ​

javascript
public string toString();

将 touch 内容以一定格式转为 string 类型。