Reputation: 315
Hi I need help to create buttons on unity screen and set different targets on each button. I set buttons with unity UI > Buttons, But I unable to set target on each button, like it start targeting usd on usd click, not others. Please help me. I will be very Thankful to you.
Upvotes: 1
Views: 141
Reputation: 876
If you have created UI button, in your inspector select your button, then
-look for the button script in the inspector,then
-look for "On click"
-Then select your gameobject with "scriptButtonQuit"
-then in the next selection box , select "scriptButtonQuit" -> "onClick()"
Upvotes: 2