# PlayerState-\>GetPlayerName() char limit???

**URL:** <https://forums.unrealengine.com/t/playerstate-getplayername-char-limit/617330>\
**Category:** Multiplayer & Networking\
**Tags:** onlinesubsystem, playerstate, unreal-engine, UE5-0, Multiplayer, question\
**Created:** [July 29, 2022, 6:40pm UTC](https://forums.unrealengine.com/t/playerstate-getplayername-char-limit/617330 "2022-07-29T18:40:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![fractylan](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@fractylan](https://forums.unrealengine.com/u/fractylan)\
**Post date:** [July 29, 2022, 6:40pm UTC](https://forums.unrealengine.com/t/playerstate-getplayername-char-limit/617330/1 "2022-07-29T18:40:10Z")

</div>

Hey all, question about OnlineSubsystem and player names. My Steam handle is quite long (21 characters) and upon retrieving the name from `PlayerState->GetPlayerName()` it’s returned cut off at 20 chars.

At first I thought this was to do with Steam Subsystem, but I renamed my PC to the same 21 chars and even the Null Subsystem only returns the 20 char player name.

I’ve been digging thru the code for online subsystem and can’t find any reason that the name would be returned cut off at a 20 char limit. When the Player connects - the full name comes in, but upon Joining Session it seems that the name is truncated somewhere.

 ![UnrealEditor_lYZxwE2lxr](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/8/5/985fb5259e2144688c394a872d41bfac6e991910.png)

Again I can’t figure out where/why this is happening digging thru any of the Subsystem / Networks code. Any help is much appreciated. Thanks!

---

<div class="post-metadata">

**Author:** ![gh0stfase1](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/gh0stfase1/32/1194639_2.png) [@gh0stfase1](https://forums.unrealengine.com/u/gh0stfase1)\
**Post date:** [July 29, 2022, 6:54pm UTC](https://forums.unrealengine.com/t/playerstate-getplayername-char-limit/617330/2 "2022-07-29T18:54:12Z")

</div>

Check this thread out from 2004, 6th post down…

> [Name length limit - Epic Games Forums](https://forums.epicgames.com/unreal-tournament-2003-2004/unreal-tournament-2004-general-chat/36923-name-length-limit)

Whaaaat?!?! Has this really been there since circa 2004? We have to find this!! It’s like a nerdy easter egg hunt 🤣
