鸟语天空
获取鼠标点击的屏幕坐标
post by:追风剑情 2014-4-17 11:27
void Update () {
        if (Input.GetMouseButtonDown(0))
        {
            Vector3 screenPos = Input.mousePosition;
            Debug.Log("screenPos.x=" + screenPos.x + ", screenPos.y=" + screenPos.y + ", screenPos.z=" + screenPos.z);
        }
}
评论:
发表评论:
昵称

邮件地址 (选填)

个人主页 (选填)

内容