【发布时间】:2019-06-17 11:12:16
【问题描述】:
我正在尝试触摸三星 Gear vr 触摸板的左、右、上和下触摸(在 Gear vr 的右侧)
if (Input.GetMouseButtonDown(button))
{
displayText.text = "Track pad touch down";
}
else if(Input.GetMouseButtonUp(button))
{
displayText.text = "Track pad touch up";
}
当我为每次触碰和触碰尝试上述代码时,我得到了输出,但我需要向左、向右、向上、向下和中心的特定按钮。
我想要这样的东西
if(Input.touchpad.left)
{
displayText.text = "left button clicked"
}
else if(Input.touchpad.right)
{
displayText.text = "right button clicked"
}
//向上、向下和中间按钮也一样。 任何建议将不胜感激,谢谢!
【问题讨论】:
标签: unity3d input touch gear-vr touchpad