Question by
MauBel · Sep 28, 2016 at 08:38 AM ·
gameobjectbeginnergetcomponenttaginteraction
Tag control
Hi Folks,
I'm an absolute Noob, so forgive me in advance for this silly question...
I'm building a small 2D interactive application for my students.
I have 43 UI Buttons (name: keyBtn(a)..(b) etc.) belonging to Canvas.
Each of them has its own tag (A..B..C..) representing letters, numbers and special keys. I have a 2D Text (name: scratchPad) which shall show the final result of the clicked buttons.
1) I want to "read" the tag of each of the buttons when I click one of them;
2) I want to store the tag into a string and
3) add this string to the UI Text scratchPad and show it on the screen.
Thanks for the help
Comment