There seems to be very little info online about the Strike Brush option for Text or Rich Text in UMG. Does anyone know how to increase the thickness of the strikethrough effect? Thanks!
I thank God for showing me a simple workaround!!
-
Instead of using the Strike Brush, select the Text Block in the “Hierarchy”, right-click and choose “Wrap with”. Choose Overlay.
-
Next, add a Border to that Overlay and name it as you wish (I named it “Strikethrough”).
- Set the Horizontal Alignment of the Border to “Fill” and the Vertical alignment to “Center”.
- Now increase the Padding of the Border to make the strikethrough effect as thick as you want.
- I also increased the left and right Padding for the Text Block, which allows the strikethrough effect to extend past the Text Block’s edges.
- Toggle the visibility of the Border using a Set Visibility node based on your needs:
You now have easy strikethrough text in Unreal Engine!
thanks. how come you increased padding for making it expand? it works reverse to me, I have to decrease slot padding to make it longer
also, I can’t seem to make the strike border adjust to be as wide as the text:
You’re welcome!
If you want the Strikethrough effect to be thicker, make sure you adjust the Border’s “Padding” under the “Content” category, NOT the “Padding” under the “Slot (Overlay Slot)” category:
If you want the Strikethrough effect to be longer, you can increase the “Padding” for the TEXT Block under the “Slot (Overlay Slot)” category:
However, the above method works best if your Overlay has its “Horizontal Alignment” set to something other than “Fill”:
If the Overlay’s “Horizontal Alignment” is set to fill, then the Strikethrough through effect will stretch ALL the way (which may or may not be what you want).
I hope this helps!