Unity 5 UI Tutorial - Button with Single Parameter Event Handler

preview_player
Показать описание
How to create a button and subscribe to an OnClick() event with one parameter.

Рекомендации по теме
Комментарии
Автор

hey Mr. Kelly, I know it's been a long time since you made this video, but do you know if it's possible to set the parameter of the button's OnClick function from a script instead of through the editor? I've looked around online and It seems there's a way to initialize it with AddListener like this: --- => { FunctionA(parameterA); }); --- Do you know if there's a way to Modify the current function's parameter rather than adding a new one?

bangojetty
Автор

Very good Tutorials, thanks for help me I was needing this it continue with your work

rafaelyahu