NGUI 事件屏蔽
public Camera m_UICamera; public int m_Layer; public bool IsUILayer() { if(m_UICamera== null) { m_UICamera= UICamera.currentCamera; } if (uiCamera != null) { Ray ray = uiCamera.ScreenPointToRay(Input.mousePosition); if (Physics.Raycast(ray, Mathf.Infinity, m_Layer)) { return true; } } return false; }

浙公网安备 33010602011771号