string clickedButtonName = UnityEngine.EventSystems.EventSystem.current.currentSelectedGameObject.name;
Debug.Log(clickedButtonName);

'프로그래밍' 카테고리의 다른 글

C# 조건부 연산자 ?:  (1) 2023.12.21
C# LINQ 그림으로 설명  (0) 2022.08.08
유니티 토글 그룹에서 선택된 토글 가져오기  (0) 2021.01.28
XML 개행문자  (0) 2021.01.15
C# XML 읽어오기  (0) 2020.12.01

+ Recent posts