Giter VIP home page Giter VIP logo

netcode-chat's Introduction

Netcode-chat

Chat system built on unity Netcode for GameObjects with command and voting support

Requirements

  • Textmeshpro
  • Netcode for GameObjects

Preview

Client1 Client2


Client2Cringe Client2Kick

Configure

In ChatHandler prefab you can see these options

ChatHandler

  • SystemMessageColor - when the system sends a message, the nickname is displayed in this color
  • OwnerMessageColor - when a user sends a message, his nickname is displayed in this color
  • ShowOnJoinMessage - should the system notify everyone about the user joining
  • ShowOnLeaveMessage - should the system notify everyone about the user leaving
  • OnJoinMessage - message after user nickname on join
  • OnOnLeaveMessage - message after user nickname on leave

Example

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;
    }
    //...
    //...
    //...
}

netcode-chat's People

Contributors

edward-khaymanov avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.