I am making a cellphone game by Unity. Now I want to display several lines of description in Text view, and players can click on certain words in this text.
By example: the text is “This is a beautiful day”, and the “day” is the key word, player can click on “day” to trigger another event.
I don’t know how to do it. Does anyone have any idea or give me some hints? Thanks a lot!
I did a lot search on internet but I did not find the solution which I want.
Now, I am thinking two ways.
One is to find the key word position(in my example, the position of “day”), then compare this position with the touch position(player touches the screen), if overlap, trigger function. But I don’t know how to find the key word position.
Another way is to use TextMesh Pro. It might work, but I don’t know exact way yet.