How to add usernames to a multiplayer game in Godot 4?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Vlosyros

I followed this tutorial and now I want to add usernames, how to do it ?

:bust_in_silhouette: Reply From: zhyrin

On the join (and host) screen you add a username field, on the server you associate peer ids with usernames (e.g.: in a dictionary).