# TextRenderComponent not displaying when added at runtime

**URL:** <https://forums.unrealengine.com/t/textrendercomponent-not-displaying-when-added-at-runtime/320454>\
**Category:** C++\
**Tags:** unreal-engine, bug-report, textrendercomponent, CPP, question, visible\
**Created:** [June 2, 2015, 5:24am UTC](https://forums.unrealengine.com/t/textrendercomponent-not-displaying-when-added-at-runtime/320454 "2015-06-02T05:24:24Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![TaurusI76](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TaurusI76](https://forums.unrealengine.com/u/TaurusI76)\
**Post date:** [June 2, 2015, 5:24am UTC](https://forums.unrealengine.com/t/textrendercomponent-not-displaying-when-added-at-runtime/320454/1 "2015-06-02T05:24:24Z")

</div>

There’s a bug when a UTextRenderComponent is added to an actor at runtime: The text is not visible.

Only when you hit F8 (while PIE) and edit a rotation value (e.g. roll) of the UTextRenderComponent, then the text becomes visible (and all other UTextRenderComponents added at runtime too!).

---

<div class="post-metadata">

**Author:** ![TaurusI76](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TaurusI76](https://forums.unrealengine.com/u/TaurusI76)\
**Post date:** [June 2, 2015, 5:30am UTC](https://forums.unrealengine.com/t/textrendercomponent-not-displaying-when-added-at-runtime/320454/2 "2015-06-02T05:30:00Z")

</div>

Here’s a project to reproduce the issue (StarterContent not included):  
Demo Project to reproduce the issue

---

<div class="post-metadata">

**Author:** ![Lovecraft\_K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lovecraft\_K](https://forums.unrealengine.com/u/Lovecraft_K)\
**Post date:** [June 2, 2015, 3:39pm UTC](https://forums.unrealengine.com/t/textrendercomponent-not-displaying-when-added-at-runtime/320454/3 "2015-06-02T15:39:22Z")

</div>

Hi -

I am looking at your test project but everything seems to be working as intended, can you give em step by step instructions on how to reproduce the issue using your test project.

Thank You

Eric Ketchum

---

<div class="post-metadata">

**Author:** ![TaurusI76](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TaurusI76](https://forums.unrealengine.com/u/TaurusI76)\
**Post date:** [June 2, 2015, 3:56pm UTC](https://forums.unrealengine.com/t/textrendercomponent-not-displaying-when-added-at-runtime/320454/4 "2015-06-02T15:56:01Z")

</div>

Ok, when you start PIE, there should be two texts displayed:

- One says ‘Built-in TextRenderActor works’

- The other one says ‘‘Static’ TextRenderComponent works too’

If you see more than two lines, you apparently don’t have this bug. I work with 4.7.6.

Then, hit F8 and select CustomTextRenderActor1 in the World Outliner.  
In the actor’s detail panel, select the DynamicTextRenderComponent (Inherited).  
Then, under Transform → Rotation edit one of the values (e.g. roll from 0.0 to 1.0)  
Two more lines of text should appear:

- One says ‘Dynamically added TextRenderComponent does not work’

- The other one is rotating around the X axis and says ‘Well, after rotating (manually) it works!’

Again, if you see 4 lines of text right from the beginning, the bug apparently is not present with your configuration. Let me know if you can reproduce it or if I need to give you additional information about the hardware/software I’m running on. Thanks!

---

<div class="post-metadata">

**Author:** ![Lovecraft\_K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lovecraft\_K](https://forums.unrealengine.com/u/Lovecraft_K)\
**Post date:** [June 2, 2015, 4:28pm UTC](https://forums.unrealengine.com/t/textrendercomponent-not-displaying-when-added-at-runtime/320454/5 "2015-06-02T16:28:15Z")

</div>

I think I see the problem. Your test project does not include a UMAP file in the content folder, so the level that your project opens to is not available to me. Can you upload that umap file so I can add it to the project.

Thank You

Eric Ketchum

---

<div class="post-metadata">

**Author:** ![TaurusI76](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TaurusI76](https://forums.unrealengine.com/u/TaurusI76)\
**Post date:** [June 2, 2015, 5:54pm UTC](https://forums.unrealengine.com/t/textrendercomponent-not-displaying-when-added-at-runtime/320454/6 "2015-06-02T17:54:44Z")

</div>

I’m sorry, I forgot that the map I used was saved in the starter content folder as well - didn’t include it in the zip.

Here’s another zip with just the map. You can just merge it with the existing project, the folders should be correct. The map is Minimal\_Default.umap

Minimal\_Default.umap

---

<div class="post-metadata">

**Author:** ![TaurusI76](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@TaurusI76](https://forums.unrealengine.com/u/TaurusI76)\
**Post date:** [June 2, 2015, 7:40pm UTC](https://forums.unrealengine.com/t/textrendercomponent-not-displaying-when-added-at-runtime/320454/7 "2015-06-02T19:40:15Z")

</div>

Hi Eric

Sorry for the confusion. I was commenting on [this](https://answers.unrealengine.com/questions/215531/textrender-component-invisible.html) issue when I decided to do a small project to reproduce the error and open a new question in the Bug Reports section. The I forgot to put detailed instructions on how to reproduce the issue here - my bad! I hope you now find everything you need in the comments below.

---

<div class="post-metadata">

**Author:** ![Lovecraft\_K](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Lovecraft\_K](https://forums.unrealengine.com/u/Lovecraft_K)\
**Post date:** [June 3, 2015, 5:14pm UTC](https://forums.unrealengine.com/t/textrendercomponent-not-displaying-when-added-at-runtime/320454/8 "2015-06-03T17:14:40Z")

</div>

Hi TaurusI76 -

So Thank you for the test project I can see there is an issue there and have entered a report, for reference UE-16528. There is a work around which will allow you to achieve what you are looking for. If you move the Dynamic and Dynamic2 ConstructObject Lines (those 2 lines only) into the Constructor and out of Begin Play, the objects will render correctly at Begin Play.

I will keep you informed as we work on a fix for this issue -

Eric Ketchum
