using TMPro; using UnityEngine; namespace LobbyRelaySample.UI { /// /// Displays the player's name. /// public class UserNameUI : ObserverPanel { [SerializeField] TMP_Text m_TextField; public override void ObservedUpdated(LobbyUser observed) { m_TextField.SetText(observed.DisplayName); } } }