Change Player name

Hi Convai Team,

I’m trying to update the default name “Player” in the chat box through the Convai Transcript UI, but it doesn’t seem to register the change. Could you please advise on how to properly configure this? (Photo attached)

Hello,

What name is currently displayed in the UI?

Hi,

It doesn’t change. It appears the default name “Player”.

Which UI type do you use?

I m on Unity WebGL version

Which UI type do you use?

Apologies but i am not sure what you mean by which UI

ChatBox, Subtitles, or QA. Which one do you use?

I am using Chat box

I ve changed the player name text color and it works fine but the name for a reason remains “Player “

Could you please change it from the Settings Panel? (Press the 0 key to open it.)

I tried updating it from the Settings panel, but it’s still not working. Ideally, we want the name to remain consistent at all times and prevent the users from changing it.

In UIDisplayNameSettings.cs, locate the ChangePlayerName method and comment out the following line:

ConvaiChatUIHandler.Instance.playerName = _playerNameInputField.text;

This will prevent the player name from being changed through the UI and keep it consistent.

These kinds of customizations are entirely up to you, the provided code is for demo purposes, so you can freely modify it to fit your needs.

It works, Thanks for your help.

1 Like