Skip to main content

User Settings

The PlayNANOO chat service requires user configuration separate from the existing account service. If you are already using the PlayNANOO account service, configure the user using the provided account information.

Call Information

SetPlayer(string userId, string userName) {}

Call Details

ParameterDescriptionType
userIdUser IDstring
userNameUser namestring

Source Code

using UnityEngine;
using PlayNANOO.ChatServer;
using PlayNANOO.ChatServer.Models;

public class PlayNANOOChatExample : MonoBehaviour, IChatListener
{
ChatClient chatClient;

void Start()
{
chatClient = new ChatClient(this);
chatClient.SetPlayer("USER_ID", "USER_NAME");
}
}