Author Topic: About href  (Read 4055 times)

shokinhan

  • Guest
About href
« on: June 08, 2012, 07:00:45 AM »
I want to do href, eg: commit quest, how to do ?

PhilipC

  • Guest
Re: About href
« Reply #1 on: June 08, 2012, 11:03:38 AM »
I dont really understand your question. What are you trying to do? Like do a webpage redirect on button click?

MetaMythril

  • Guest
Re: About href
« Reply #2 on: June 08, 2012, 11:55:09 AM »
I dont really understand your question. What are you trying to do? Like do a webpage redirect on button click?

That sounds like what he is asking. You would need to add a UIButtonMessage component onto a button which would then call a function that used Unity's WWW() class to make a web request call with a given URL in it.

Hope that helps.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: About href
« Reply #3 on: June 08, 2012, 02:55:04 PM »
You can't do inline html anchors like you can in regular html. You can sorta fake it with a custom collider and the color encoding in a label, but that's about it.

MetaMythril

  • Guest
Re: About href
« Reply #4 on: June 08, 2012, 07:18:14 PM »
After Nicki's reference to anchors, that made me think of how Tera Online does quest text that essentially has embedded sudo-hyperlinks where the text functions much like a html hyperlink where clicking on the highlighted text invokes some game action (i.e. map opens up with the target creature located on the map).

This is most likely what the OP is talking about and would require the approach that Nicki recommends. I had the wrong idea. :P

shokinhan

  • Guest
Re: About href
« Reply #5 on: June 09, 2012, 12:40:17 AM »
thanks , I will use the buttonmessage and boxcollider!