프로그래밍
유니티 버튼 클릭했을때 버튼 이름 가져오기
어부
2022. 12. 15. 16:23
string clickedButtonName = UnityEngine.EventSystems.EventSystem.current.currentSelectedGameObject.name;
Debug.Log(clickedButtonName);