- Home /
 
Is it possible to embbed images in RichText?
Facts: 1) I have a .htm file, wich I am loading as a TextAsset.. 2) this file is prepared with RichText-like tags.. 3) This file contents are displayed by a Label in the OnGUI callback 4) I need to show images inside this label, as if this where an tag from real HTML. Inline with the text...
Is that possible? I need it A.S.A.P. :(
I don't believe Unity's GUI components support that kind of high level layout functionality out of the box. You would have to process the tags manually then load and position all the elements appropriately using various labels, textfields and images. Though I may be mistaken.
Answer by Benproductions1 · Jun 11, 2013 at 02:26 AM
Hello,
By standard, Unity does not support rich text parsing, generally because it's not something you would use in many cases and is therefore not worth the development time/money.
This leaves you with two options:
Either you make your own rich text parser. Or you use a package that does it for you.
I remember seeing a package that transforms html to GUI, but I forgot it's name :)
Hope this helps,
Benproductions1 
I've bougth HT$$anonymous$$LEngine.. It does the trick... its tags variety aren't very wide as I'd liked but it works..
Thanks!
Your answer
 
             Follow this Question
Related Questions
Aligning an overlay to existing GUI elements 0 Answers
Open gui if player clicks on button 2 Answers
Help w/GUILayout Please 1 Answer
Guilayout problems with image resize 0 Answers
Make GUILayout horizontal first, then vertical? (C#) 3 Answers