Unity 經過UGUI實現3D物體點擊事件

1.給主攝像機添加Physics Raycaster腳本;(檢測源)測試 2.添加UGUI EventSystem (UGUI事件系統)code 3.寫腳本,實現IPointerClickHandler接口,將腳本掛載到被點擊物體上;blog using System.Collections; using System.Collections.Generic; using UnityEngine;
相關文章
相關標籤/搜索