# How to wrap text in "text\_block"

**URL:** <https://forums.unrealengine.com/t/how-to-wrap-text-in-text-block/1670101>\
**Category:** Verse\
**Tags:** unreal-editor-for-fortnite, fortnite-creative, question, fortnite\
**Created:** [February 6, 2024, 2:59pm UTC](https://forums.unrealengine.com/t/how-to-wrap-text-in-text-block/1670101 "2024-02-06T14:59:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![RyuFuru12121](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@RyuFuru12121](https://forums.unrealengine.com/u/RyuFuru12121)\
**Post date:** [February 6, 2024, 2:59pm UTC](https://forums.unrealengine.com/t/how-to-wrap-text-in-text-block/1670101/1 "2024-02-06T14:59:07Z")

</div>

Hi,

Let me question how to wrap text in Verse,  
I wrote the following code to show text inside widget:

```auto
AddWidget(Agent : agent, Title : string, Msg : string) : void=
        if:
            Player := player[Agent]
            PlayerUI := GetPlayerUI[Player]
        then:
            MessageWidget := CreateWidget(Title, Msg)
            InputMode := player_ui_slot:
                InputMode := ui_input_mode.All
            PlayerUI.AddWidget(MessageWidget, InputMode)
            if:
                set widgetMap[Player] = MessageWidget
                              

    CreateWidget(Title : string, Msg : string) : canvas=
        var btn : button_quiet = button_quiet{DefaultText := StringToMessage("CLOSE")}
        btn.OnClick().Subscribe(RemoveWidget)
	....
                       
                canvas_slot:
                    Anchors := anchors{Minimum := vector2{X := 0.5, Y := 0.5}, Maximum := vector2{X := 0.5, Y := 0.5}}
                    Offsets := margin{Left := -900.0, Top := 195.0, Right := 500.0, Bottom := 210.0}
                    Alignment := vector2{X := 0.0, Y := 0.0}
                    SizeToContent := false
                    Widget := text_block:
                        DefaultText := StringToMessage(Title)
                        DefaultTextColor := NamedColors.White
	.....

        return MessageWidget

```

However, the text is sticked out of the widget.  
as this picture shows:

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/b/b/fbb7f504bcc043ff74db2f8318fc6473f2c882df.jpeg)

How shoud I do to wrap text to fit into the widget?  
(Using “\n” for each sentence takes much time. So, I would like to know whether text can be wrap automatically setting “text\_block”)

Regards

---

<div class="post-metadata">

**Author:** ![AGuyCalledRevive](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@AGuyCalledRevive](https://forums.unrealengine.com/u/AGuyCalledRevive)\
**Post date:** [March 26, 2025, 8:04pm UTC](https://forums.unrealengine.com/t/how-to-wrap-text-in-text-block/1670101/2 "2025-03-26T20:04:03Z")

</div>

Would love to know if this is possible

---

<div class="post-metadata">

**Author:** ![eric.fruchter](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/eric.fruchter/32/1121256_2.png) [@eric.fruchter](https://forums.unrealengine.com/u/eric.fruchter)\
**Post date:** [April 1, 2025, 5:39am UTC](https://forums.unrealengine.com/t/how-to-wrap-text-in-text-block/1670101/3 "2025-04-01T05:39:29Z")

</div>

Unfortunately, this does not seem possible yet, as the only overflow policies we expose in text\_block are Clip and Ellipsis.

I’ll see if I can get an internal ticket made for this. Thank you!

---

<div class="post-metadata">

**Author:** ![OberonTV](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@OberonTV](https://forums.unrealengine.com/u/OberonTV)\
**Post date:** [June 14, 2025, 7:32pm UTC](https://forums.unrealengine.com/t/how-to-wrap-text-in-text-block/1670101/4 "2025-06-14T19:32:26Z")

</div>

Hello, any news on this subject?

---

<div class="post-metadata">

**Author:** ![Channing.Cai](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Channing.Cai](https://forums.unrealengine.com/u/Channing.Cai)\
**Post date:** [October 22, 2025, 8:26am UTC](https://forums.unrealengine.com/t/how-to-wrap-text-in-text-block/1670101/5 "2025-10-22T08:26:34Z")

</div>

Hi, is there any update on this subject? Thinking it’s a super simple feature. We have a lot of dynamic texts, and need this feature a lot.

---

<div class="post-metadata">

**Author:** ![Flak](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/flak/32/769441_2.png) [@Flak](https://forums.unrealengine.com/u/Flak)\
**Post date:** [October 22, 2025, 6:39pm UTC](https://forums.unrealengine.com/t/how-to-wrap-text-in-text-block/1670101/6 "2025-10-22T18:39:49Z")

</div>

We have a ticket for tracking, but there has been no movement on this yet. Feel free to ping me at a later date to check on the status. UE-350091
