Unity通过射线识别UI层 孙鸿飞 | 2025-3-19 14:10 | 23 | 游戏,程序 27 字 | 2 分钟 public GraphicRaycaster raycaster; public EventSystem eventSystem; private void Update() { PointerEventData pointerEventData = new PointerEventData(eventSystem); pointerEventD… C#Unity