x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

UMG: Text block color codes?

Hello, Is there any way to change part of the text in textblock to be different color (like first word/sentence)?

Product Version: Not Selected
Tags:
more ▼

asked Dec 20 '14 at 04:48 PM in Blueprint Scripting

avatar image

Mily2206
66 6 8 12

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Nope.. this is one of the limitations with UMG which personally really disappoints me.

There really needs to be proper rich text support... I mean any UI system that I have ever used before have that.

The only thing you can do right now is to use multiple text blocks right next to each other (you can use a wrap box for example) but the issue I currently have with this method is that the more text blocks there are, the more the performance hit becomes, I guess the draw calls aren't batched properly? or I don't know.

My case is kind of extreme and pretty heavy on text though.

If you only need for relatively small number of words to be a different color then it should be no problem at all.

more ▼

answered Dec 20 '14 at 06:27 PM

avatar image

TK-Master
166 13 16 24

avatar image Grogger Mar 25 '15 at 08:42 PM

Hi TK-Master,

Have you found a way around the performance problem or otherwise found a better solution for this?

avatar image alperenakyuz Mar 25 '15 at 08:55 PM

It shouldn't be that heavy on the GPU since it's an extremely low order draw call.

avatar image RVillani Jan 06 '16 at 08:05 AM

Maybe the Invalidation Box Widget can solve the performance problem. It's under Palette > Optimization.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

If someone stumbled upon this, there's already a solution for it in the forums. It's currently implemented as experimental but can already be used.

more ▼

answered Mar 22 '17 at 12:49 PM

avatar image

Progreth
6 1 1

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question