How to add an image in a multiline text
Hi, I want to have a text with multiple lines and with an icon in the midle of the text. This text will be localized, so I need a generic solution. I had made several tests but I didn't get the result I was expecting, having some problems with the format of the lines. I attach an image with an example of what I want to achieve. The text I would be something like “If you want to jump press the {x_button} and you will be able to reach new areas”, changing the {x_button} tag for the icon itself. I have searched a lot about this issue but I didn't found any solution, so any help will be great.
(comments are locked)
|
Hi Lithara, unfortunately you can't directly insert your image into the textBox. You still have some options.
[WrapBox]
This technique work well but have one major problem. Let me explain. If you need a lot of icon and text, it's not impossible that you need to separate some text like this to get better result-> [WrapBox]
(I didn't test this example but you'll get it after some test)
I wish this can help you a little, if you have other question, feel free to ask! Cheers Ok, thank you, I was afraid of that. The first option is only valid for one line (I'm using this in other places) and the second option is not valid for me because the localization. I think the options are to modify the engine or try to add our own icons in the fonts. I hope Unreal will add this feature in the future, because I think is very usefull. By the way, thank you very much for your time. No problem, I wish they'll add some feature for this too (we need a lot of thing before this), have a good day!
(comments are locked)
|
Follow this question
Once you sign in you will be able to subscribe for any updates here