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
| Parameter | Description | Type |
|---|---|---|
| userId | User ID | string |
| userName | User name | string |
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");
}
}