Question by
chainalonez · May 01, 2016 at 01:13 PM ·
uitextmouseclickchat
Can i click on UI Text like this?
right click on chat text, for show menu like this.
Left click on Item name, for show detail of item.
i'm dong chat panel in unity and confused to use any tools for make that. thanks for answer and sorry for my bad english.
elf-20160501-0747511.jpg
(515.9 kB)
elf-20160501-0741051.jpg
(513.6 kB)
Comment
If the text is an UI Text, you can add an event trigger, where you have an event called PointerClick. You can add a method from a script attached to a gameobject. In the method you should display a tooltip with the required informations.
Information about Event Triggers.
thanks for comment, i'll try. if i have only one UI Text and it has more text, but i do need sometext to like hyperlink. Is it possible?
Your answer
![](https://koobas.hobune.stream/wayback/20220612075943im_/https://answers.unity.com/themes/thub/images/avi.jpg)