I have a RichText displayed with a full text in it.
Without clicking on the screen I want to generate a new game object exactly on top of specific words in the RichText.
How would I get the exact screen location of a specific word within a RichText?
Thanks a lot!
The UI.Text component exposes a TextGenerator property (http://docs.unity3d.com/ScriptReference/UI.Text-cachedTextGenerator.html) that you can use to find the position of generated glyphs. These positions will be relative to the gameObject with the Text component, so you’ll need to do some additional transformation to get the screen position.