Chat system built on unity Netcode for GameObjects with command and voting support
MIT License
Chat system built on unity Netcode for GameObjects with command and voting support
In ChatHandler
prefab you can see these options
In Example
folder you can see ExampleScene
scene.
To test, you have to build the project twice with different "IsHost" parameters.
Or use the ParrelSync extension and modify the Example
script like this
Before:
private void Start()
{
if (_isHost == false)
{
NetworkManager.Singleton.StartClient();
return;
}
//...
//...
//...
}
After:
private void Start()
{
if (ClonesManager.GetArgument() == "client")
_isHost = false;
else
_isHost = true;
if (_isHost == false)
{
NetworkManager.Singleton.StartClient();
return;
}
//...
//...
//...
}