This video show how you can detect the clicked UI button name in unity and we will be printing the name of the button that is clicked.
GitHub link :
https://github.com/tanveersabir/UnityEssentials/tree/T3-UIButton-click-name
Video for more explanation:

Analyst studies emerging trends in the information technology.