Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity button onclick

GetComponent<Button>().onClick.AddListener(()=>print("clicked"));
 
PREVIOUS NEXT
Tagged: #unity #button #onclick
ADD COMMENT
Topic
Name
5+3 =