📜  在屏幕底部检测鼠标 + unity - C# 代码示例

📅  最后修改于: 2022-03-11 14:49:02.743000             🧑  作者: Mango

代码示例1
//Quick and dirty
private void Update()
{
    Vector3 mousePos = Camera.main.ScreenToWorldPoint(Input.mousePosition);

  if (mousePos.y < 0)
  {
      Debug.Log("Mouse in bottom");
  }
}