simple case, wthere a panel has 5 buttons. rather than apply a script to each button, i wanted to put 1 script on panel, which take care of everything.
please correct me if i am wrong.. current assumption is, multiple methods to solve this
a- put component "Button Message" on each and mention the function to be called
b- use component "Forward Event" on each button and then in panel script, use 'onClick' function to listen them
c- use "UIEventListener" somehow magically ( most modern approach )
Current status
i can solve via method 'a' >> pros: simple / easy >> cons: have to mention function on each button component
i am trying to use method 'b' >> pros: good / decent cons: i am having difficulty in detecting which button is pressed in 'onClick' function (in panel)
ideally, if someone can give few steps demo / explanation about how to use third approach, i'll be greatful.
huge thanks in advance and regards,lala