浏览代码

Merge pull request #66 from unity/placeonplane-fix

Fix for Simple AR Interaction Scheme
/4.1
GitHub Enterprise 4 年前
当前提交
6cf4534c
共有 1 个文件被更改,包括 1 次插入10 次删除
  1. 11
      Assets/Scripts/PlaceOnPlane.cs

11
Assets/Scripts/PlaceOnPlane.cs


bool TryGetTouchPosition(out Vector2 touchPosition)
{
#if UNITY_EDITOR
if (Input.GetMouseButton(0))
{
var mousePosition = Input.mousePosition;
touchPosition = new Vector2(mousePosition.x, mousePosition.y);
return true;
}
#else
#endif
touchPosition = default;
return false;

ARRaycastManager m_RaycastManager;
}
}
}
正在加载...
取消
保存