NGUI判断鼠标在哪个UI上
if (UICamera.hoveredObject != null)
    Debug.Log(UICamera.hoveredObject.name);


hoveredObject就是一个UICamera通过鼠标位置用射线检测到的UI物体。


首页 我的博客
粤ICP备17103704号