Pawandeep
Pawandeep

Reputation: 315

Want to Use Different Targets on different unity buttons

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

Answers (1)

Umesh Verma
Umesh Verma

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()"

Unity Button UI

Upvotes: 2

Related Questions