# How to add outline to a Text Render component?

**URL:** <https://forums.unrealengine.com/t/how-to-add-outline-to-a-text-render-component/459186>\
**Category:** Rendering\
**Tags:** font, outline, text, unreal-engine, textrendercomponent, question\
**Created:** [December 5, 2019, 11:49pm UTC](https://forums.unrealengine.com/t/how-to-add-outline-to-a-text-render-component/459186 "2019-12-05T23:49:19Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tigro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tigro](https://forums.unrealengine.com/u/Tigro)\
**Post date:** [December 5, 2019, 11:49pm UTC](https://forums.unrealengine.com/t/how-to-add-outline-to-a-text-render-component/459186/1 "2019-12-05T23:49:19Z")

</div>

I have a Text Render component in one of my actors and would like to add a black outline to it. In widgets, it’s trivial cause you just go to a given text widget’s Appearance → Font → Outline Settings and set it there but with Text Render component, there’s no such option, only the general color of the font. How would I go about adding an outline like in widgets?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b58cf9e8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b58cf9e8](https://forums.unrealengine.com/u/anonymous_user_b58cf9e8)\
**Post date:** [December 6, 2019, 12:16am UTC](https://forums.unrealengine.com/t/how-to-add-outline-to-a-text-render-component/459186/2 "2019-12-06T00:16:11Z")

</div>

You can create a custom text material that lerps in an outline into the base color:

 ![293478-outlinetext.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/7/287fba7ad0053260b25fa81e0d2dac02ffabbb89.jpeg)

---

<div class="post-metadata">

**Author:** ![Tigro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tigro](https://forums.unrealengine.com/u/Tigro)\
**Post date:** [December 6, 2019, 10:33pm UTC](https://forums.unrealengine.com/t/how-to-add-outline-to-a-text-render-component/459186/3 "2019-12-06T22:33:40Z")

</div>

Perfect, just what I needed, thanks a lot! The only question I have is - when I try to bump the outline thickness higher thatn 0.5, the text becomes completely dark in my case, why is that so? Lower values work fine, only the larger ones break something. Can I somehow make it thicker?

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_b58cf9e8](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_b58cf9e8](https://forums.unrealengine.com/u/anonymous_user_b58cf9e8)\
**Post date:** [December 7, 2019, 12:22am UTC](https://forums.unrealengine.com/t/how-to-add-outline-to-a-text-render-component/459186/4 "2019-12-07T00:22:38Z")

</div>

Ya, this was thrown together pretty quickly and the params aren’t very descriptive. You can control the actual thickness of the outline using the OutlinePos parameter. It takes pretty small values so you might want divide it by 100 or something so you can use whole numbers to control the thickness a bit better.

---

<div class="post-metadata">

**Author:** ![Tigro](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Tigro](https://forums.unrealengine.com/u/Tigro)\
**Post date:** [December 9, 2019, 12:56pm UTC](https://forums.unrealengine.com/t/how-to-add-outline-to-a-text-render-component/459186/5 "2019-12-09T12:56:46Z")

</div>

Perfect - thanks a lot!

---

<div class="post-metadata">

**Author:** ![Ssteidle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ssteidle](https://forums.unrealengine.com/u/Ssteidle)\
**Post date:** [May 31, 2021, 8:54pm UTC](https://forums.unrealengine.com/t/how-to-add-outline-to-a-text-render-component/459186/6 "2021-05-31T20:54:14Z")

</div>

Hi @clayton.campbell thanks for the info - however, my rext body now looks kind of grey, not a clear white. Any thoughts on that? It’s just ever so slightly ‘off’

thanks!

---

<div class="post-metadata">

**Author:** ![Grainofsalt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Grainofsalt](https://forums.unrealengine.com/u/Grainofsalt)\
**Post date:** [June 1, 2021, 7:22pm UTC](https://forums.unrealengine.com/t/how-to-add-outline-to-a-text-render-component/459186/7 "2021-06-01T19:22:52Z")

</div>

@Ssteidle - You could try to plug the result of the color lerp in the Emissive Color input. Seems to work on my side!

---

<div class="post-metadata">

**Author:** ![Ssteidle](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Ssteidle](https://forums.unrealengine.com/u/Ssteidle)\
**Post date:** [June 2, 2021, 12:48am UTC](https://forums.unrealengine.com/t/how-to-add-outline-to-a-text-render-component/459186/8 "2021-06-02T00:48:38Z")

</div>

@grainofsalt Worked like a charm! Should change your handle, giving out such sincere advice as that ; j

thanks!

---

<div class="post-metadata">

**Author:** ![Grainofsalt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Grainofsalt](https://forums.unrealengine.com/u/Grainofsalt)\
**Post date:** [June 2, 2021, 1:31am UTC](https://forums.unrealengine.com/t/how-to-add-outline-to-a-text-render-component/459186/9 "2021-06-02T01:31:15Z")

</div>

Haha. You’re very welcome!

---

<div class="post-metadata">

**Author:** ![ECHS\_BACHS](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/echs_bachs/32/467351_2.png) [@ECHS\_BACHS](https://forums.unrealengine.com/u/ECHS_BACHS)\
**Post date:** [June 16, 2021, 1:16am UTC](https://forums.unrealengine.com/t/how-to-add-outline-to-a-text-render-component/459186/10 "2021-06-16T01:16:06Z")

</div>

How do You get those green ‘outline \_’ Boxes ?

---

<div class="post-metadata">

**Author:** ![Grainofsalt](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Grainofsalt](https://forums.unrealengine.com/u/Grainofsalt)\
**Post date:** [June 16, 2021, 1:26am UTC](https://forums.unrealengine.com/t/how-to-add-outline-to-a-text-render-component/459186/11 "2021-06-16T01:26:53Z")

</div>

@ECHS BACHS - These are called ‘Scalar parameters’ (equivalent of a float variable in blueprint). There are different ways to create them.

**Method 1:**  
Right-click in the background of the material and search for ‘ScalarParameter’. You should see a green node with a ‘0’ value. Then, right-click this new green node and select ‘Convert to parameter’. You can then assign a name to this parameter and edit it in the material instances.

**Method 2:**  
Similar to method 1, but there is a keyboard shortcut to accelerate the creation, instead of right-click + searching. Simply hold ‘1’ and click anywhere in the material graph. It will create a scalar node with the value ‘0’ - then just follow the same steps as method 1 to convert it to a parameter.

**Method 3 - My favorite 🙂**  
There is yet another shortcut, which is personally my favorite method to create a scalar parameter. Just hold ‘s’ and click anywhere in the material graph. It will create a scalar node, but already converted to a parameter. Just rename it and you’re good to go!

Cheers!

---

<div class="post-metadata">

**Author:** ![mark2105](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@mark2105](https://forums.unrealengine.com/u/mark2105)\
**Post date:** [February 2, 2022, 7:22pm UTC](https://forums.unrealengine.com/t/how-to-add-outline-to-a-text-render-component/459186/12 "2022-02-02T19:22:12Z")

</div>

I’m not able to see the link anymore, it just says " Oops! That page doesn’t exist or is private."  
Is there a way to see it?

---

<div class="post-metadata">

**Author:** ![Ares9323](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/ares9323/32/1194521_2.png) [@Ares9323](https://forums.unrealengine.com/u/Ares9323)\
**Post date:** [February 9, 2023, 12:05pm UTC](https://forums.unrealengine.com/t/how-to-add-outline-to-a-text-render-component/459186/13 "2023-02-09T12:05:29Z")

</div>

This creates a inner outline, is it possible to change it to create it outside the letters?

---

<div class="post-metadata">

**Author:** ![Maxime66410](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/maxime66410/32/623689_2.png) [@Maxime66410](https://forums.unrealengine.com/u/Maxime66410)\
**Post date:** [January 12, 2024, 3:27pm UTC](https://forums.unrealengine.com/t/how-to-add-outline-to-a-text-render-component/459186/14 "2024-01-12T15:27:51Z")

</div>

Thanks.

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/7/f/e7f57c8e9f43aa024ecc0e2fc450daa5d9fcdbc8.png)
