Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity print name of button when click on it

public void OnClicked(Button button)
 {
     print(button.name);
 }
 //You then have to drag your button containing this script in the script area
 
PREVIOUS NEXT
Tagged: #unity #print #button #click
ADD COMMENT
Topic
Name
6+7 =