Unity 射线检测 UGUI

 工程示例图:ide  1. 鼠标经过射线检测 UI ,记得 EventSystem 和 GraphicRaycaster 赋值,变量已经 Public 直接拖拽上去便可code using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems;
相关文章
相关标签/搜索