using UnityEngine.EventSystems;
EventSystem.current.currentSelectedGameObject.transform
로 클릭된 버튼을 찾을 수 있다.
사용 예시)
string btnName = "";
btnName = EventSystem.current.currentSelectedGameObject.transform.name;
'Unity' 카테고리의 다른 글
Sprite Atlas (0) | 2023.02.09 |
---|