- Home /
Question by
guayeah · Jun 12, 2017 at 08:44 AM ·
c#buttonfunctionprocedural generation
Change Button onClick function number via code
I have this button with de IdAction marked
Depending on the number the button changes the color of the background to each other
But the buttons with the different colors are generated procedurally so I can't change the IdAction on the Inspector so now the other buttons have exactly the same IdAction. How can I change it via code?
Thanks
captura.png
(18.7 kB)
captura1.png
(16.2 kB)
Comment
Your answer
Follow this Question
Related Questions
Why will my button not let me run a function? 4 Answers
Multiple Cars not working 1 Answer
Jumping on moving platforms problem c# 1 Answer
The variable has not been assigned - but it has 1 Answer
Distribute terrain in zones 3 Answers