UMG - Gradients on Text Blocks

Hi, I’m trying to create a gradient text effect for the ranks in my game over screen.

This is the kind of effect I would like to be able to achieve on the text. I’ve also added in some colour swatches of the gradient to make it easier to replicate.

33024-example.png

I would prefer to use the text renderer within UE4 to get sharper looking fonts as opposed to exporting what I have out as an image. Is it possible to create these kinds of effects because so far I can’t find any information relating to applying a gradient to a text block element which is a shame as UMG has been pretty awesome to use so far.

Hi, I found that one earlier but it seemed like it only worked with the Text Render Actor, I was looking for a solution that would work with the text block in UMG. Reason being is that UMG won’t let me use a material for the font rendering unlike the Text Render Actor. I’m also in 4.7 if that helps.

Hey CaptainMcMarcus -

I answered a question similar to this on how to make a Font Material which can be used in the Text Render Actor which should be able to achieve something similar to what you are looking to achieve.

Let me know if I can clarify -

Eric Ketchum

Hi -

Well, I have added a feature request to add that functionality to the text components of the UMG, for reference it is UE-11448.

As soon as I know more I will let you know

Thank You

Eric Ketchum

Hi, any updates on this subject?

This feature was added in the 4.9 version of the engine.

But Text widget still can’t use offline fonts, so we can’t access DistanceAlpha and achieve some results like TextActor on scene do :frowning:

There is a feature request in to add the ability for UMG to use offline fonts, UE-24934, which is currently unresolved. This is separate from the request entered by Eric K. earlier for UMG to utilize material’s for text widgets.

Once this feature request has been integrated into the engine, it will be added to the list of new features for an upcoming full engine release or hotfix.

Thank you,

Hi Andrew - can you update us on the status of UE-24934 ? (allow UMG to use offline fonts). I can’t find that issue in the issues db.

Gradient fonts still aren’t really doable in UMG without being able to pick the offline font that matches the one you use in the material (referring to Eric’s workaround).

Hey Spoondog,

I copied the issue over to the public issues tracker which you can vote and track by following the link below.

UE-24934

Let me know if you have further questions or need additional assistance.

Cheers,

Actually for the record - you CAN do gradient fonts in UMG without having to use an Offline font (if you set a Font Material in a text block, the material will multiply the text color), but offline font support is still required if you want an outline, glow, or something that isn’t covered by a basic color multiply.

Hi, you should be able to do it with this kit on the unreal marketplace:
It should solve what you would like to do, I noticed there’s also a playable demo!