- Home /
Show a message(image) using a button?
im new in unity and im still quite confused. im making a small mall and i'd like a message(in image) to appear when the user clicks on of the items he'd like to purchase. then in the message box is a confirmation (it says, "would you like to purchase this?" with a yes or no). how can i make it appear on click of the item and close when the user picks either yes or no?
thank you in advance!
Button.onClick UnityEvent that is triggered when the button is pressed. Note: Triggered on $$anonymous$$ouseUp after $$anonymous$$ouseDown on the same object. documentaion for Button.onClick
https://docs.unity3d.com/ScriptReference/UI.Button-onClick.html
Seriously, when there is an official tutorial on the official website, you have NO EXCUSE AT ALL
To prevent you from accepting questions such like this one and several other ones in the moderation queue since they does not respect the FAQ
Follow this Question
Related Questions
Highlight images in buttons children 0 Answers
Buttons not working properly. 0 Answers
UI button in Panel not clickable 2 Answers
Use Singleton Prefab in Button's onClick editor field 0 Answers