# Better way to add text to a inspect system

**URL:** <https://forums.unrealengine.com/t/better-way-to-add-text-to-a-inspect-system/382619>\
**Category:** Blueprint\
**Tags:** text-box, unreal-engine, UE4, Blueprint, question\
**Created:** [January 22, 2017, 8:19am UTC](https://forums.unrealengine.com/t/better-way-to-add-text-to-a-inspect-system/382619 "2017-01-22T08:19:27Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Blucifer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/blucifer/32/701766_2.png) [@Blucifer](https://forums.unrealengine.com/u/Blucifer)\
**Post date:** [January 22, 2017, 8:19am UTC](https://forums.unrealengine.com/t/better-way-to-add-text-to-a-inspect-system/382619/1 "2017-01-22T08:19:27Z")

</div>

Hello all,

I have a inspect system, where I click, the object go close to the player view, and I can rotate this object, and when leave the inspect mode, this object back to his original location in the world…  
I have a raycast, and when he hit a object he cast to another BP, who have a static mesh only… then I can roate this object … I have another system but instanced of use Cast to Blueprint he use Actor has a Tag node…

 ![123149-c6bc2f45316259075dc79b4b991cf489.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/5/9/2594199018d265370c3a280a25a5704c68ff4ca3.png)

Now Im trying to add some kind of text support, like the image below, in the image, when you click “spacebar” the UI are replaced with text, to be better to read (image from the game Layers of Fear).

 ![123150-maxresdefault.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/e/7/be7327212f5c8b4866205567b0963ebb687d149f.jpeg)

 ![123161-layers-of-fear_20160216183126.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/6/b/16b65375100b5e3450e0bd9ea1f8edb16ca9626f.jpeg)

My question is, what is the best way to add this kind of text support, if you have example more then one “inspectable” objects with different text in your project ?

Thanks

---

<div class="post-metadata">

**Author:** ![Shadowriver](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Shadowriver](https://forums.unrealengine.com/u/Shadowriver)\
**Post date:** [January 23, 2017, 9:12pm UTC](https://forums.unrealengine.com/t/better-way-to-add-text-to-a-inspect-system/382619/2 "2017-01-23T21:12:36Z")

</div>

IS there any problem with just adding Text (for multi language support insted of string) variable to inspectable object class with text and simply display with UMG or least good old HUD canvas?

---

<div class="post-metadata">

**Author:** ![Civility\_Reigns](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Civility\_Reigns](https://forums.unrealengine.com/u/Civility_Reigns)\
**Post date:** [January 23, 2017, 9:27pm UTC](https://forums.unrealengine.com/t/better-way-to-add-text-to-a-inspect-system/382619/3 "2017-01-23T21:27:34Z")

</div>

You can create an editable text variable in your inspectable object blueprint where the text can be stored. Any instance of the object you place in the level will then have its own text property, which can be found in the details panel and changed just like the location or rotation. This variable will also be inherited by any child blueprints, so if you create specialized inspectable objects (bloody notes, bullet casings, and so on) they will have their own inspection text variables, as long as you set the original inspectable object blueprint as the parent.

This variable can then be accessed in any of your blueprint scripts that work with the inspectable object. For example, a UI widget could get the value of the inspection text variable from the inspected object, and set the content of a text widget using the value that is returned.

---

<div class="post-metadata">

**Author:** ![Blucifer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/blucifer/32/701766_2.png) [@Blucifer](https://forums.unrealengine.com/u/Blucifer)\
**Post date:** [January 23, 2017, 9:54pm UTC](https://forums.unrealengine.com/t/better-way-to-add-text-to-a-inspect-system/382619/4 "2017-01-23T21:54:49Z")

</div>

Thanks to reply .  
So this is what I have in the BP\_MasterInspectObject

![123366-c510e9a60a6e853c6e8bd99b41b9a7e9.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/e/d/4/ed4354697ea8cf1dcdb0603a4b86b69ebb58fe1c.png)

Are you talk about the “TextRender” component? If yes, I tried add the TextRender component, but I cast the inspect at the blueprint, so if I rotate the object (from the BP\_MasterInspectObject) this will rotate the TextRenderer too.

![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/3/5/b35f1f6b21f91b6ef1cfe056ded8ea666e808c58.gif)

(gif showing the inspect)

Today I just think about create a Widget blueprint, add a “Text Block” … call this Widget BP inside the BP\_MasterInspectObject and change the text from the “Text Block” inside the BP\_MasterInspectObject…

Because I will only duplicate this BP\_MasterInspectObject and change the mesh and the text inside him…

But I dont know how to change the text in the Text Block from another blueprint… or if this is a good way to do this kind of stuff

---

<div class="post-metadata">

**Author:** ![Blucifer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/blucifer/32/701766_2.png) [@Blucifer](https://forums.unrealengine.com/u/Blucifer)\
**Post date:** [January 24, 2017, 3:15pm UTC](https://forums.unrealengine.com/t/better-way-to-add-text-to-a-inspect-system/382619/5 "2017-01-24T15:15:04Z")

</div>

Thanks to reply Civility\_Reigns.  
I add the editable text variable in the inspectable blueprint, but I try to look at internet how to do what you say and also I have tried without success.

 ![123438-editable-text-var.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/d/a/1da89b2db5f90540174ba0f5863377d608a9f677.png)

What I have to connect in the editable text variable? and how can access the editable text variable inside the Widget Blueprint Text Box? Because I dont see any option to add text in the editable text variable

Again thanks to reply

---

<div class="post-metadata">

**Author:** ![Blucifer](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/blucifer/32/701766_2.png) [@Blucifer](https://forums.unrealengine.com/u/Blucifer)\
**Post date:** [January 30, 2017, 3:03pm UTC](https://forums.unrealengine.com/t/better-way-to-add-text-to-a-inspect-system/382619/6 "2017-01-30T15:03:36Z")

</div>

Okay people, here I show how I did this: 🙂

> **[Better way to add text to a inspect system](https://forums.unrealengine.com/showthread.php?134913-Better-way-to-add-text-to-a-inspect-system&p=657417#post657417)**
>
> Hello all, I have a inspect system, where I click, the object go close to the player view, and I can rotate this object, and when leave the inspect mode, this object back to his original location in the world… I have a raycast, and when he hit a...

de nada 😃
