본문 바로가기
프로그래밍

유니티 버튼 클릭했을때 버튼 이름 가져오기

by 어부 2022. 12. 15.
string clickedButtonName = UnityEngine.EventSystems.EventSystem.current.currentSelectedGameObject.name;
Debug.Log(clickedButtonName);