Skip to main content

Example Game

Summary

The example chat game is a Unity sample project that contains example codes to allow users to easily utilize the chat functions.

The example was developed in the following versions:

  • Unity 2022.3.9f1
  • Backend 5.11.1

Download

How to Configure

1. Import the example chat game

Download BackendChatExample.unitypackage from the download URL above and import it.

2. Enable chat in the console

Go to BACKND Console's Chat > Settings and click Enable Chat.

3. Enter the common server key of the BACKND Console project

  1. In BACKND Console, go to Chat > Settings tab and copy the common server key.

  1. Click The Backend > Edit Settings on the upper side of Unity. Then, enter the Client App ID and Signature Key in the created inspector.

4. Enter the chat server key of the BACKND Console project

Go to BACKND Console's Chat > Settings and copy the Chat UUID.

Click The Backend > Edit Chat Settings on the upper side of Unity. Then, enter the Chat UUID in the created inspector.

5. Create channel groups and channels

  1. Click the + button next to Channel Groups.

  1. Click Open Type and click Next.

  1. Enter the channel group name and the maximum number of users per channel. Then, select a FALLBACK channel and click Next.

  1. Enter the name of the first channel and click the Create button.

6. Run project

The configuration is complete. You can now run the Unity project.