DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
5+5 =
Submit