Page 1 of 1

Custom markup tags

Posted: Tue Dec 18, 2018 4:46 pm
by davidlim
Hello, I'm trying to achieve a functionality in which onHover on a specific work a script would run.
I think this could be nicely achieved with a tag like so

Code: Select all

If you[hover=someData]HOVER[/hover] me, something cool might happen 
Is this possible ?

If not how should I approach activating some behavior on word being hovered ?

Re: Custom markup tags

Posted: Tue Dec 18, 2018 10:11 pm
by Tony Li
Hello David,

Use TextMesh Pro. (See Enable TextMesh Pro Support)

Use TextMesh Pro's <link> tag.

This is a good tutorial: Hyperlinks in Unity UI using Text Mesh Pro.