1
NGUI 3 Support / Make Links in string clickable
« on: January 27, 2014, 02:24:14 AM »
Hi NGUI Team,
Is there any way i can make links in a particular string(applied on a UILabel as text) clickable(basically when the user clicks on that area of the label we open that particular link in a new tab).
I can easily strip the links using RegEx and then apply different color codes to them but the issue is my label has multiple lines and i cannot split the normal texts and links in different labels as it would lead to inappropriate collider position triggering the action.
Eg Here is the label
i am using ngui http://www.tasharen.com/?page_id=140 try
this great tool. here is the
forum http://www.tasharen.com/forum/index.php
Now can i have colliders on the specific areas where there is a link and then trigger the event to open that link in a new tab from there.
Is there any way i can make links in a particular string(applied on a UILabel as text) clickable(basically when the user clicks on that area of the label we open that particular link in a new tab).
I can easily strip the links using RegEx and then apply different color codes to them but the issue is my label has multiple lines and i cannot split the normal texts and links in different labels as it would lead to inappropriate collider position triggering the action.
Eg Here is the label
i am using ngui http://www.tasharen.com/?page_id=140 try
this great tool. here is the
forum http://www.tasharen.com/forum/index.php
Now can i have colliders on the specific areas where there is a link and then trigger the event to open that link in a new tab from there.