Unity 射線檢測 UGUI

 工程示例圖:ide  1. 鼠標經過射線檢測 UI ,記得 EventSystem 和 GraphicRaycaster 賦值,變量已經 Public 直接拖拽上去便可code using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems;
相關文章
相關標籤/搜索