Can we do a truncated player name ?

Summary

Ive created a game with a verse ui scoreboard and everythings good but if a players name is uber long it covers the score so i want to limit the amount of characters followed by … so if the limit is 5 itll be AT AS… if that makes sense. Ive tried various methods and everything i do the name shows as anonymous ? Can we seriously not limit the text limit in a text_block that is taking the players name ?

Please select what you are reporting on:

Unreal Editor for Fortnite

What Type of Bug are you experiencing?

UI/Tools

Steps to Reproduce

question

Expected Result

question

Observed Result

question

Platform(s)

pc

Additional Notes

Any help would be appreciated or just a confirmation that its not possible

Can someone help with this or can someone @ epic confirm if we cannot do it so i stop testing things.

You can’t get/modify a player’s name in verse, you can only reference/pass it from an agent to a message. it will always turn to Anonymous[256/something]
You could “truncate it” if you were using UMG and just set in the rendering to clip to bounds like in the picture below where I was able to limit how big the text block would be. But that would definitely limit your options to displaying it using a hud message device/tracker/Stat Creator

Actually, you “COULD” use verse buttons which by default have Clip To Bounds for the text. Although the text WILL scroll so it won’t replace the text with eg. Mineb… but rather show Mineb and slowly scroll through the entire name.

Here’s the code from the screenshot, you can Change the X value in ?Size to make it longer or shorter. I would recommend when Applying the UI to make sure input mode is set to None just to be sure players won’t try to click the button

AtM<localizes>(Agent:agent):message="{Agent}"
TestDevice:=class(creative_device):
    OnBegin<override>()<suspends>:void=
        if(Player:=GetPlayspace().GetPlayers()[0],PlayerUI:=GetPlayerUI[Player]):
            Canvas:=canvas:
                Slots:=array. canvas_slot:
                    Anchors:=anchors{Minimum:=vector2{X:=0.5,Y:=0.5},Maximum:=vector2{X:=0.5,Y:=0.5}}
                    Widget:=canvas:
                        Slots:= array:
                            MakeCanvasSlot(button_quiet{DefaultText:=AtM(Player)},vector2{},?Size:=vector2{X:=150.0,Y:=50.0})

            PlayerUI.AddWidget(Canvas)```