- Home /
Question by
Gilles_aerts · Jun 18, 2015 at 06:16 AM ·
buttononclick
assigning an onclick() function to a button after its instantiated
Hi
I have a prefab of a button. The button need to run a function but since its not in in the game from the beginning, I don't know how to assign it to it via code.
All answers are welcome thanks.
Comment
Your answer
Follow this Question
Related Questions
Canvas button with 2 functions onClick must be pressed twice for 2nd function? Will not disappear? 1 Answer
How to ADD one Buttons.onClick events to another Buttons.onClick? 1 Answer
Looping through Button Array and checking for OnClick 0 Answers
How to get parameters of UnityEvent that I set in inspector from script? 1 Answer
How to modify a button component with C# 0 Answers