Unity3D教程:鼠标点击转换成触摸.pdfVIP

  • 121
  • 0
  • 约小于1千字
  • 约 2页
  • 2021-12-01 发布于江苏
  • 举报
Unity3D教程:鼠标点击转换成触摸 Posted on 2013 年 02 月 06 日 by U3d / Unity3D 基础教程/ 被围观 434 次 Unity3D教程 :鼠标点击转换成触摸,触屏做起来麻烦,不能用OnMouse xxx 事 件,需要自己用RayHit 来判断是否按在某个按钮上,逻辑如下: 在 LastUpdate 里: 1.if(Input.touchCount 0) 有触摸事件发生继续。 2.Touch th = Input.GetTouch(0); 获取第一个触摸事件。 3.判断是哪

文档评论(0)

1亿VIP精品文档

相关文档