# How can I edit a text block

**URL:** <https://forums.unrealengine.com/t/how-can-i-edit-a-text-block/1268726>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, fortnite\
**Created:** [August 22, 2023, 11:38am UTC](https://forums.unrealengine.com/t/how-can-i-edit-a-text-block/1268726 "2023-08-22T11:38:38Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![nelmi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nelmi/32/746978_2.png) [@nelmi](https://forums.unrealengine.com/u/nelmi)\
**Post date:** [August 22, 2023, 11:38am UTC](https://forums.unrealengine.com/t/how-can-i-edit-a-text-block/1268726/1 "2023-08-22T11:38:38Z")

</div>

How can I make a text block that I can edit, for example (update the text if this is true, etc…). I want to make a text block on the right of the screen but I don’t know how to.

---

<div class="post-metadata">

**Author:** ![DustinREDGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dustinredgames/32/634988_2.png) [@DustinREDGames](https://forums.unrealengine.com/u/DustinREDGames)\
**Post date:** [August 22, 2023, 2:16pm UTC](https://forums.unrealengine.com/t/how-can-i-edit-a-text-block/1268726/2 "2023-08-22T14:16:30Z")

</div>

> [@Verse UI - How to convert strings from exposed properties into messages, to use with SetText()?](https://forums.unrealengine.com/t/verse-ui-how-to-convert-strings-from-exposed-properties-into-messages-to-use-with-settext/836155/2):
>
> Something like this should work. Method to convert: StringToMessage\<localizes\>(value:string) : message = "{value}" Set text on widget: WidgetTitle.SetText(StringToMessage(TextTitle))

> [@Quick way to display text to player's screen from Verse script](https://forums.unrealengine.com/t/quick-way-to-display-text-to-players-screen-from-verse-script/831948/5):
>
> Here is an example of displaying dynamic text on the screen, changing a value, and updating the text. using { /Verse.org/Simulation } using { /Verse.org/Colors } using { /Fortnite.com/Devices } using { /Fortnite.com/UI } using { /UnrealEngine.com/Temporary/Diagnostics } using { /UnrealEngine.com/Temporary/SpatialMath } using { /UnrealEngine.com/Temporary/UI} dynamic\_text\_device := class(creative\_device): var \_myIntValue:int = 0 var \_textWiget: text\_block = text\_block{DefaultTextCo…

---

<div class="post-metadata">

**Author:** ![nelmi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nelmi/32/746978_2.png) [@nelmi](https://forums.unrealengine.com/u/nelmi)\
**Post date:** [August 23, 2023, 7:12am UTC](https://forums.unrealengine.com/t/how-can-i-edit-a-text-block/1268726/4 "2023-08-23T07:12:03Z")

</div>

How can I edit the text for it to show up on the UI. For example, I want to change it to “Complete!”

---

<div class="post-metadata">

**Author:** ![DustinREDGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dustinredgames/32/634988_2.png) [@DustinREDGames](https://forums.unrealengine.com/u/DustinREDGames)\
**Post date:** [August 23, 2023, 2:12pm UTC](https://forums.unrealengine.com/t/how-can-i-edit-a-text-block/1268726/5 "2023-08-23T14:12:27Z")

</div>

If you don’t know how to make a custom Verse device, then you could just easily use a bunch of HUD Message Devices that show/hide messages on screen at different states of your game.

> **[HUD Message Devices](https://dev.epicgames.com/documentation/en-us/fortnite-creative/using-hud-message-devices-in-fortnite-creative)**
>
> Create custom HUD messages for players based on time or activities.

---

<div class="post-metadata">

**Author:** ![nelmi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nelmi/32/746978_2.png) [@nelmi](https://forums.unrealengine.com/u/nelmi)\
**Post date:** [August 23, 2023, 2:58pm UTC](https://forums.unrealengine.com/t/how-can-i-edit-a-text-block/1268726/6 "2023-08-23T14:58:49Z")

</div>

I can’t use a creative device because I have custom functions on there, can you answer me on how to do what i said previously

---

<div class="post-metadata">

**Author:** ![DustinREDGames](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/dustinredgames/32/634988_2.png) [@DustinREDGames](https://forums.unrealengine.com/u/DustinREDGames)\
**Post date:** [August 23, 2023, 3:04pm UTC](https://forums.unrealengine.com/t/how-can-i-edit-a-text-block/1268726/7 "2023-08-23T15:04:23Z")

</div>

I did answer your question with a link to an example:

> [@Quick way to display text to player's screen from Verse script](https://forums.unrealengine.com/t/quick-way-to-display-text-to-players-screen-from-verse-script/831948/5):
>
> Here is an example of displaying dynamic text on the screen, changing a value, and updating the text. using { /Verse.org/Simulation } using { /Verse.org/Colors } using { /Fortnite.com/Devices } using { /Fortnite.com/UI } using { /UnrealEngine.com/Temporary/Diagnostics } using { /UnrealEngine.com/Temporary/SpatialMath } using { /UnrealEngine.com/Temporary/UI} dynamic\_text\_device := class(creative\_device): var \_myIntValue:int = 0 var \_textWiget: text\_block = text\_block{DefaultTextCo…

There are two key parts of the example:

A method to dynamically set the text:  
`SetDynamicText<localizes>(value:string) : message = "{value}"`

And setting the message in your text block widget:  
`_textWidget.SetText(SetDynamicText("Complete!"))`

I can only hold your hand so far, at some point you need to learn it on your own.

---

<div class="post-metadata">

**Author:** ![nelmi](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/nelmi/32/746978_2.png) [@nelmi](https://forums.unrealengine.com/u/nelmi)\
**Post date:** [August 24, 2023, 7:34am UTC](https://forums.unrealengine.com/t/how-can-i-edit-a-text-block/1268726/8 "2023-08-24T07:34:19Z")

</div>

I did all off that but now I’m getting an error, everything’s in this post: [Why am I getting this error?](https://forums.unrealengine.com/t/why-am-i-getting-this-error/1270201)
