Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity create button with parameter

int j = 5;
someGameObject.GetComponent<Button>().onClick.AddListener(delegate {myFunction(j); });
 
PREVIOUS NEXT
Tagged: #unity #create #button #parameter
ADD COMMENT
Topic
Name
5+5 =